BUG: Wrong error message output for pd.DataFrame.from_dict · Issue #47450 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@KianShah

Description

@KianShah

Pandas version checks

Reproducible Example

import pandas as pd df = pd.DataFrame([1,2,3]) df_dict = df.to_dict(orient='tight') df = pd.DataFrame.from_dict(df_dict, orient='abc')

Issue Description

Error msg output is "ValueError: only recognize index or columns for orient"

Expected Behavior

Error message should include that it can also recognize 'tight' as a valid value for the orient parameter, as of v1.4.0

Installed Versions

Replace this line with the output of pd.show_versions()

****