import pandas as pd
students_dict = {
"Name" : ["Miguel", "Juan David", "Cármen", "Facundo", "Romina"],
"Age" : [29, 19, 24, 22, 25],
"Career path": ["Data Analyst", "Data Scientist", "Data Analyst", "Data Engineer", "ML Engineer"],
}
students_df = pd.DataFrame(students_dict)
students_df
students_list = [
{"Name": "Miguel", "Age": 29, "Career path": "Data Analyst"},
{"Name": "Juan David", "Age": 19, "Career path": "Data Scientist"},
{"Name": "Cármen", "Age": 24, "Career path": "Data Analyst"},
]
students_df_2 = pd.DataFrame(students_list)
students_df_2
students_df.dtypes
import pandas as pd
qualify_dict = {
"Team": ["Brasil", "Argentina", "Ecuador", "Uruguay", "Perú", "Chile", "Colombia", "Bolivia", "Paraguay", "Venezuela"],
"Matches played": [15, 15, 16, 16, 16, 16, 16, 16, 16, 16],
"Games won": [12, 10, 7, 6, 6, 5, 3, 4, 2, 3],
"Tied matches": [3, 5, 4, 4, 3, 4, 8, 3, 7, 1],
"Lost matches": [0, 0, 5, 6, 7, 7, 5, 9, 7, 12],
"Goals for": [32, 23, 25, 19, 17, 19, 16, 23, 9, 14],
"Goals against": [5, 7, 15, 22, 21, 20, 19, 35, 23, 30],
"Goal difference": [27, 16, 10, -3, -4, -1, -3, -12, -14, -16],
"Points": [39, 35, 25, 22, 21, 19, 17, 15, 13, 10]
}
qualifydict_df = pd.DataFrame(qualify_dict)
qualifydict_df
import pandas as pd
qualify_list = [
{"Team": "Brasil", "Matches played": 15, "Games won": 12, "Tied matches": 3, "Lost matches": 0, "Goals for": 32, "Goals against": 5, "Goal difference": 27, "Points": 39},
{"Team": "Argentina", "Matches played": 15, "Games won": 10, "Tied matches": 5, "Lost matches": 0, "Goals for": 23, "Goals against": 7, "Goal difference": 16, "Points": 35},
{"Team": "Ecuador", "Matches played": 16, "Games won": 7, "Tied matches": 4, "Lost matches": 5, "Goals for": 25, "Goals against": 15, "Goal difference": 10, "Points": 25},
{"Team": "Uruguay", "Matches played": 16, "Games won": 6, "Tied matches": 4, "Lost matches": 6, "Goals for": 19, "Goals against": 22, "Goal difference": -3, "Points": 22},
{"Team": "Perú", "Matches played": 16, "Games won": 6, "Tied matches": 3, "Lost matches": 7, "Goals for": 17, "Goals against": 21, "Goal difference": -4, "Points": 21},
{"Team": "Chile", "Matches played": 16, "Games won": 5, "Tied matches": 4, "Lost matches": 7, "Goals for": 19, "Goals against": 20, "Goal difference": -1, "Points": 19},
{"Team": "Colombia", "Matches played": 16, "Games won": 3, "Tied matches": 8, "Lost matches": 5, "Goals for": 16, "Goals against": 19, "Goal difference": -3, "Points": 17},
{"Team": "Bolivia", "Matches played": 16, "Games won": 4, "Tied matches": 3, "Lost matches": 9, "Goals for": 23, "Goals against": 35, "Goal difference": -12, "Points": 15},
{"Team": "Paraguay", "Matches played": 16, "Games won": 2, "Tied matches": 7, "Lost matches": 7, "Goals for": 9, "Goals against": 23, "Goal difference": -14, "Points": 13},
{"Team": "Venezuela", "Matches played": 16, "Games won": 3, "Tied matches": 1, "Lost matches": 12, "Goals for": 14, "Goals against": 30, "Goal difference": -16, "Points": 10},
]
qualifylist_df = pd.DataFrame(qualify_list)
qualifylist_df