0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

データ分析案件で毎回使う細かなコピペ集

Last updated at Posted at 2020-10-08

プロジェクトのたびにgoogle検索しているあれこれを追記していきます.
整理しながら追加していくすたいる(なので散らかっている)

  • 順不同 / 新しいトピックを上に書いていくだけ

SQL

Bigqueryとのアクセス


import pandas
import pandas_gbq

sql = """
    SELECT  * 
    FROM `your-gcp-project-id.dataset1.your_table` 
    LIMIT 10000
"""

project_id = 'your-gcp-project-id'

df = pandas.read_gbq(sql, project_id=project_id, dialect='standard')

Jupyter notebook

jupyter kite

コード補完のエクステンション

Kite Integrations & Plugins - AI Autocomplete & Docs for Python

bash -c "$(wget -q -O - https://linux.kite.com/dls/linux/current)"
pipenv install --dev jupyter-kite
pipenv run jupyter nbbextension install "@kiteco/jupyterlab-kite"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?