Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for col in cols:
- if col not in columns_X:
- X[col] = 0
- if col not in columns_X_out:
- X_out[col] = 0
- for col in cols:
- if col.startswith('artist_genre'):
- X[col] = X[col].astype(bool)
- X_out[col] = X_out[col].astype(bool)
Add Comment
Please, Sign In to add comment