by shigemk2

当面は技術的なことしか書かない

2018-10-29から1日間の記事一覧

DataFrame カラムだけ

pandas.DataFrame — pandas 0.23.4 documentation こういうふうにしてカラムだけ定義することができる。 pds = pd.DataFrame(columns=[ 'id', 'name' ])

Python round

組み込みです。roundです。小数点の精度の問題で、きちんと丸まらない可能性はあります。 Return number rounded to ndigits precision after the decimal point. If ndigits is omitted or is None, it returns the nearest integer to its input. 2. 組み…