REGR: empty CatgoricalIndex constructor by passing no data (but passing categories) no longer working #38944
Labels
Categorical
Categorical Data Type
Needs Discussion
Requires discussion from core team before further action
Regression
Functionality that used to work in a prior pandas version
Milestone
See https://github.com/pandas-dev/pandas/pull/38614/files#r551313565
#38614 changed the CategoricalIndex constructor to disallow scalar values, but at the same time it also disallowed passing no values to create an empty index (which in practice means passing the default of
None
):If we make this change, this is at least something that should be deprecated IMO (eg it breaks dask parquet reading).
But I am not sure if we should change it, since other constructors like
Series()
allow similar creation of empty objects:cc @jbrockmendel
The text was updated successfully, but these errors were encountered: