pandas read_json dtype=pd.CategoricalDtype does not work but dtype='category' does
Is this a known issue that specifying CategoricalDtype dtype at read_json does not convert the column dtype, or is there a mistake in the code? import pandas as pd df = pd.read_json( "./data/data.json", dtype={ #"facility": pd.CategoricalDtype, # does not work "facility": ‘category’, # does work "supplier": pd.CategoricalDtype, # does not work } ) df.info() —–… Read More pandas read_json dtype=pd.CategoricalDtype does not work but dtype='category' does