category_encoders icon indicating copy to clipboard operation
category_encoders copied to clipboard

EOF Error Raised while Calling HashingEncoders function

Open shi8tou opened this issue 1 year ago • 6 comments

Expected Behavior

HashingEncoders should encode the categorical columns successfully

Actual Behavior

Got EOF error issue while calling HashingEncoders function

Steps to Reproduce the Problem

  1. Packages installed on my laptop: category_encoders==2.6.0 & python==3.10.0

  2. Dataset is here: test_1.csv

  3. 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
  1. This code "dd = he.fit_transform(dataset)" will throw EOF Error.

Specifications

  • Version:
  • Platform:
  • Subsystem:

shi8tou avatar Mar 02 '24 15:03 shi8tou