Hi,
Thanks for registering with ProjectPro Recipes - get just-in-time learning and release your projects faster with "ready-to-use" Data-Science code snippets.Â
We recently launched an end-to-end solved industry project with video explanation, solution code and dataset. The project is Handwritten Digit Recognition using TensorFlow with Python. Its available here.Â
Â
Find below a recipe we launched recently -Â
How to convert categorical variables into numerical variables in Python?
Download the code for this recipe and access 1000+ recipes
## How to convert categorical variables into numerical variables in Python
def Kickstarter_Example_76():
print()
print(format('How to convert categorical variables into numerical variables in Python','*^82'))
import warnings
warnings.filterwarnings("ignore")
# load libraries
import pandas as pd
# Create a dataframe
data = {'first_name': ['Jason', 'Molly', 'Tina', 'Jake', 'Amy'],
'last_name': ['Miller', 'Jacobson', 'Ali', 'Milner', 'Cooze'],
'gender': ['male', 'female', 'male', 'female', 'female']}
df = pd.DataFrame(data,.......
.
.
View the complete recipe
Get access to solved, end-to-end projects using such recipes - price increases on March 26
|