Pandas Merge Function for Merging DataFrames

Опубликовано: 29 Сентябрь 2024
на канале: RegenerativeToday
103
8

These are the codes for creating the DataFrames used in this video:

df1 = pd.DataFrame(
{
"Name": ['Mike', "Dave", "Farah", "Rony", "Laura"],
"Age": [21, 19, 17, 22, 26],
"City": ["Houston", "Aukland", "Miami", "Sarasota", "Phoenix"]
})


df2 = pd.DataFrame(
{
"Name": ['Mike', "Dave", "Tommy", "Farah", "Rony"],
"Score": [78, 98, 82, 86, 88],
"Weight": [190, 230, 153, 120, 160]
})

df3 = pd.DataFrame(
{
"First Name": ['Mike', "Dave", "Farah", "Rony"],
"Last Name": ["Flan", "Smith", "Oniel", "Farnandez"],
"Age": [21, 19, 17, 22],
"City": ["Houston", "Aukland", "Miami", "Sarasota"],
})

df4 = pd.DataFrame(
{
"First Name": ['Mike', "Dave", "Dave", "Rony"],
"Last Name": ["Flan", "Smith", "Smith", "Brooks"],
"Score": [78, 98, 86, 88],
"Weight": [190, 230, 120, 160]
})


Please feel free to check out my Data Science blog where you will find a lot of data visualization, exploratory data analysis, statistical analysis, machine learning, natural language processing, and computer vision tutorials and projects:
https://regenerativetoday.com/


Twitter page:
  / rashida048  


Facebook Page:
https://regenerativetoday.com/


#pandas #Python #DataScience #DataAnalysis