Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.errors.UnsupportedFunctionCall#

exceptionpandas.errors.UnsupportedFunctionCall[source]#

Exception raised when attempting to call a unsupported numpy function.

For example,np.cumsum(groupby_object).

Examples

>>>df=pd.DataFrame({"A":[0,0,1,1],..."B":["x","x","z","y"],..."C":[1,2,3,4]}...)>>>np.cumsum(df.groupby(["A"]))Traceback (most recent call last):UnsupportedFunctionCall:numpy operations are not valid with groupby.Use .groupby(...).cumsum() instead

[8]ページ先頭

©2009-2025 Movatter.jp