I performed OHE on my data with sparse=True parameter - which doesn't seem doing anything?
I've try:
# One Hot Encoding
df_ohe = pd.get_dummies(df, columns=cats, drop_first=True, sparse=True)
df_ohe = df_ohe.sparse.to_coo().tocsr() #Explicitely convert
df_ohe.memory_usage().sum()
...which returns
AttributeError: Can only use the '.sparse' accessor with Sparse data.
Help would be appreciated. Thanks!