Created
May 29, 2019 14:29
-
-
Save NMZivkovic/b87056ab9c1e3eeea5725ad7310c7aff to your computer and use it in GitHub Desktop.
This file contains hidden or 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
categorical_features = {"season", "yr", "mnth", "holiday", "hr", "workingday", "weekday", "weathersit"} | |
for feature in categorical_features: | |
data[feature] = data[feature].astype("category") | |
data.dtypes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment