23
10

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 5 years have passed since last update.

pandas python データフレーム indexとcolumnsのタイトルのつけ方(行名、列名ではない)

Posted at

行名、列名では無く、データフレームindexとcolumnsのタイトルのつけ方。
日本語ググってすぐに出てこなかったから、メモ。

インデックスのタイトル
df.index.name = colname1

列のタイトル(列名ではない)
df.columns.name = colname2

参考リンク
https://stackoverflow.com/questions/18022845/pandas-index-column-title-or-name

23
10
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
23
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?