Created
August 19, 2019 13:29
-
-
Save lakshay-arora/4242908389479dea5ca1116d8a84151d to your computer and use it in GitHub Desktop.
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
import pandas as pd | |
import category_encoders as ce | |
# create a Dataframe | |
data = pd.DataFrame({ 'gender' : ['Male', 'Female', 'Male', 'Female', 'Female'], | |
'class' : ['A','B','C','D','A'], | |
'city' : ['Delhi','Gurugram','Delhi','Delhi','Gurugram'] }) | |
data.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment