Work with IPv6 in the new tracker. (#10125)

This commit is contained in:
Jiaming Yuan
2024-03-20 05:19:23 +08:00
committed by GitHub
parent 53fc17578f
commit ca4801f81d
10 changed files with 113 additions and 59 deletions

View File

@@ -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):