Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.DataFrame.size#

propertyDataFrame.size[source]#

Return an int representing the number of elements in this object.

Return the number of rows if Series. Otherwise return the number ofrows times number of columns if DataFrame.

See also

ndarray.size

Number of elements in the array.

Examples

>>>s=pd.Series({'a':1,'b':2,'c':3})>>>s.size3
>>>df=pd.DataFrame({'col1':[1,2],'col2':[3,4]})>>>df.size4

[8]ページ先頭

©2009-2025 Movatter.jp