Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Converting Categorical variables in to integers using Dummy

#Converting Categorical variables in to int using Dummy

pd.get_dummies(final_df,columns=["Airline", 
                                 "Source", 
                                 "Destination"] ,drop_first = True)
Comment

PREVIOUS NEXT
Code Example
Python :: join python documentation 
Python :: python palindrome check 
Python :: How to take multiple input form python 
Python :: how to make a superuser in django 
Python :: simple seaborn heatmap 
Python :: jupyter notebook cell background color 
Python :: merge keep left index 
Python :: python char at 
Python :: convert string to int dataframe column 
Python :: python keyboard 
Python :: python gaussian filter 
Python :: queue in python 
Python :: python check if key exist in json 
Python :: super title python 
Python :: quantile calcultion using pandas 
Python :: kdeplot python 
Python :: Normalize columns in pandas dataframe2 
Python :: dockerfile to run python script 
Python :: how to use coordinates in python 
Python :: dataframe python 
Python :: pass 2d array to 1d python 
Python :: python tree 
Python :: python google docs api how to get doc index 
Python :: dict to string 
Python :: execute command in python 
Python :: bubble sort in python 
Python :: how to use prettytable in python 
Python :: groupby get last group 
Python :: django show image in admin page 
Python :: Python Regex Backslash “” 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =