FutureWarning: Using short name for 'orient' is deprecated. Only the options: ('dict', list, 'series', 'split', 'records', 'index') will be used in a future version. code example
Example: pandas to dictionary
df.to_dict('records')
df.to_dict('records')