Work with IPv6 in the new tracker. (#10125)
This commit is contained in:
@@ -429,8 +429,8 @@ def make_categorical(
|
||||
categories = np.arange(0, n_categories)
|
||||
for col in df.columns:
|
||||
if rng.binomial(1, cat_ratio, size=1)[0] == 1:
|
||||
df[col] = df[col].astype("category")
|
||||
df[col] = df[col].cat.set_categories(categories)
|
||||
df.loc[:, col] = df[col].astype("category")
|
||||
df.loc[:, col] = df[col].cat.set_categories(categories)
|
||||
|
||||
if sparsity > 0.0:
|
||||
for i in range(n_features):
|
||||
|
||||
Reference in New Issue
Block a user