Closed kartik1611 closed 3 years ago
Getting Error error.txt
import category_encoders as ce import pandas as pd
data=pd.DataFrame({'City':['Delhi','Mumbai','Hyderabad','Chennai','Bangalore','Delhi','Hyderabad','Mumbai','Agra']})
encoder= ce.BinaryEncoder(cols=['city'],return_df=True)
data.head()
data_encoded=encoder.fit_transform(data) data_encoded
Expected Behavior
Actual Behavior
Getting Error error.txt
Steps to Reproduce the Problem
import category_encoders as ce import pandas as pd
Create the Dataframe
data=pd.DataFrame({'City':['Delhi','Mumbai','Hyderabad','Chennai','Bangalore','Delhi','Hyderabad','Mumbai','Agra']})
Create object for binary encoding
encoder= ce.BinaryEncoder(cols=['city'],return_df=True)
Original Data
data.head()
Fit and Transform Data
data_encoded=encoder.fit_transform(data) data_encoded
Specifications