sf_crime_10.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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