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
  • 相关阅读:
    maven
    ELK
    gitlab 升级
    平安工作流程
    平安云应用场景
    nginx基于uwsgi部署Django (单机搭建)
    ansible
    nginx理论
    GIT
    docker(三)
  • 原文地址:https://www.cnblogs.com/bamboozone/p/10653944.html
Copyright © 2011-2022 走看看