zoukankan      html  css  js  c++  java
  • SQL kaggle learn with as excercise

    rides_per_year_query = """
    SELECT EXTRACT(YEAR FROM trip_start_timestamp) AS year ,COUNT(unique_key) AS num_trips
    FROM `bigquery-public-data.chicago_taxi_trips.taxi_trips`
    GROUP BY year
    ORDER BY year
    #运行报错
    Query cancelled; estimated size of 5.255455803126097 exceeds limit of 1 GB
    None
    
    
    rides_per_year_query = """
    SELECT EXTRACT(YEAR FROM trip_start_timestamp) AS year ,COUNT(1) AS num_trips
    FROM `bigquery-public-data.chicago_taxi_trips.taxi_trips`
    GROUP BY year
    ORDER BY year
    
    """
    #返回正确结果
     year  num_trips
    0  2013   26870287
    1  2014   31021726
    2  2015   27400744
    3  2016   19878276
    4  2017    7689021
     
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- focus on what you want to be
  • 相关阅读:
    tcp/心跳包
    TCP协议中的三次握手和四次挥手(图解)
    http 中get和post
    xmpp总结
    IOS中http请求使用cookie
    sdwebimage总结
    iOS断言
    Object-C自定义对象NSLog输入信息
    NSTimer你真的会用了吗
    ios中block中的探究
  • 原文地址:https://www.cnblogs.com/bamboozone/p/10653944.html
Copyright © 2011-2022 走看看