Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.DataFrame.keys#

DataFrame.keys()[source]#

Get the ‘info axis’ (see Indexing for more).

This is index for Series, columns for DataFrame.

Returns:
Index

Info axis.

Examples

>>>d=pd.DataFrame(data={'A':[1,2,3],'B':[0,4,8]},...index=['a','b','c'])>>>d   A  Ba  1  0b  2  4c  3  8>>>d.keys()Index(['A', 'B'], dtype='object')

[8]ページ先頭

©2009-2025 Movatter.jp