Skip to content

Instantly share code, notes, and snippets.

Created October 30, 2020 00:18
What would you like to do?
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