pandas.DataFrame.cumsum# DataFrame.cumsum(axis=None, skipna=True, *args, **kwargs)[source]# Return cumulative sum over a DataFrame or Series axis. Returns a DataFrame or Series of the same size containing the cumulative sum. Parameters: axis{0 or ‘index’, 1 or ‘columns’}, default 0The index or the name of the axis. 0 is equivalent to None or ‘index’. For Series this parameter is unused and default
概要 12-10の問題は、 自民得票率と持ち家比率の相関係数を検定する問題です。 資料はかなり古い(1983年の総選挙!!)ですが、持ち家を持っているほど自民党が有利になるように見えて面白いです。 そこで、単に解くだけでなく、pandas, matplotlibあたりを使って、グラフも表示することにしました。 環境 windows10 64bit python3.5 jupyter-notebook 必要なライブラリなどは、http://www.lfd.uci.edu/~gohlke/pythonlibs/ からダウンロードしました。pip installで入れると動かないこともありました。 ライブラリ %matplotlib inline import pandas as pd import numpy as np import matplotlib.pyplot as plt impo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く