I am a student, just starting with python and I have a problem with the .drop function in pandas.
- I have created some dummies (for many variables, here I give only 1 example)
- Now I want to get rid of the initial columns / variables but the function doesn't work.
dummy = pd.get_dummies(leads['MainTariffInsuranceGroupSF'], prefix ='MainTariffInsuranceGroupSF')
leads = pd.concat([leads,dummy], 1)
#leads = leads.drop(['LeadCreation_Weekday','MainTariffInsuranceGroupSF','LeadCreation_DecadeInMonth', 'Nationality', 'Language', 'AgeGroupStandard', 'OccupationType', 'Region'], axis=1, implace=True)
I also have to say: I don't get any error. Variables are just not removed. And the last time (a few days ago, when I worked on this jupiter notebook this same lines of code worked without a problem.