category_encoders
category_encoders copied to clipboard
EOF Error Raised while Calling HashingEncoders function
Expected Behavior
HashingEncoders should encode the categorical columns successfully
Actual Behavior
Got EOF error issue while calling HashingEncoders function
Steps to Reproduce the Problem
-
Packages installed on my laptop: category_encoders==2.6.0 & python==3.10.0
-
Dataset is here: test_1.csv
-
Run following code:
import pandas as pd
import category_encoders as ce
dataset = pd.read_csv('test_1.csv')
he = ce.HashingEncoder(cols=['purchase_address'], n_components=2)
dd = he.fit_transform(dataset)
dd.columns
- This code "dd = he.fit_transform(dataset)" will throw EOF Error.
Specifications
- Version:
- Platform:
- Subsystem: