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