Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sf_crime_10.py
old_columns = train.columns
train = add_datepart(train, "Dates", drop=False)
new_columns = list(set(train.columns) - set(old_columns))
print(f"add_datepart created {len(new_columns)} created new features")
for i, new_column in enumerate(new_columns):
print(f" {i + 1}. {new_column}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment