benmiroglio / pymatch

MIT License
272 stars 128 forks source link

m.compare_categorical() #15

Open rm17tink opened 5 years ago

rm17tink commented 5 years ago

get an error claiming "['var' 'before' 'after'] not in index" when running compare_categorical()

mc51 commented 5 years ago

I think this might be the error you get when there is no categorical data in your predictors. Did you check that you have any data of type categorical in your co-variates? Check df.info()

rayzhai commented 3 years ago
截圖 2021-01-06 上午2 57 08

I meet same problem even through I transfer the feature into categorical