LoginSignup
1
2

More than 3 years have passed since last update.

とりあえずjupyterにimportしとくやつら

Last updated at Posted at 2020-01-02

更新していきたいやーつですね。

不要なものはimportしないほうが良いのは百も承知ですが、
どんな敬虔なエンジニアも言うて前のソースからコピペしてると思うので。

import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
# Suppress warnings 
import warnings
warnings.filterwarnings('ignore')
import gc

# matplotlib and seaborn for plotting
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn as sns

#追記
import json
import datetime
import math

#importじゃないけど、個人的には省略されて良いことがあまりないので・・
pd.set_option('display.max_columns', 500)
pd.set_option('display.max_rows', 1000)

ちなみにjupyterに自動でimportする方法は以下の記事などに詳しいです。
今度試そう。
https://recruit-tech.co.jp/blog/2018/10/16/jupyter_notebook_tips/

1
2
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
1
2