Guest User

Untitled

a guest
Feb 16th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. for col in cols:
  2. if col not in columns_X:
  3. X[col] = 0
  4. if col not in columns_X_out:
  5. X_out[col] = 0
  6. for col in cols:
  7. if col.startswith('artist_genre'):
  8. X[col] = X[col].astype(bool)
  9. X_out[col] = X_out[col].astype(bool)
Add Comment
Please, Sign In to add comment