BUG: cannot use category dtype in pandas read_json method #40063
Labels
Categorical
Categorical Data Type
Duplicate Report
Duplicate issue or pull request
IO JSON
read_json, to_json, json_normalize
import pandas as pd
print(pd.version)
1.2.2
Problem described in other places:
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
When I run the above, I get the following dtypes for the dataframe columns:
score uint8
color object
Expected Output
score uint8
color category
The text was updated successfully, but these errors were encountered: