tips:python:pandas:start
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| tips:python:pandas:start [2024/07/09 06:58] – yuuho | tips:python:pandas:start [2025/03/27 02:10] (現在) – yuuho | ||
|---|---|---|---|
| 行 17: | 行 17: | ||
| df = df[[' | df = df[[' | ||
| df = df.loc[:, | df = df.loc[:, | ||
| + | * '' | ||
| + | * str や str の list は列扱い | ||
| + | * slice や Series? boolean の ndarray 的なやつの場合は行扱い | ||
| + | |||
| + | ===== df 作成 ===== | ||
| + | |||
| + | dict から作成する。 | ||
| + | <code python> | ||
| + | df = pd.DataFrame({ | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | }).set_index(' | ||
| + | </ | ||
| + | |||
| + | |||
tips/python/pandas/start.1720508306.txt.gz · 最終更新: 2024/07/09 06:58 by yuuho
