[1003]pandas deprecated warning to_dict()

2021-06-24 10:42:54 浏览数 (4)

I’m getting this deprecated warning:

代码语言:javascript复制
Using short name for 'orient' is deprecated. Only the options: ('dict', list, 'series', 'split', 'records', 'index') will be used in a future version. Use one of the above to silence this warning.

when using any of thise lines:

代码语言:javascript复制
df.to_dict('records')
df.to_dict(orient='records')
df.to_dict(orientation='records')

来源:https://stackoverflow.com/questions/64695541/pandas-deprecated-warning-to-dict

0 人点赞