import pandas as pd
= pd.DataFrame({ # DataFrame is created from a dictionary
df "Name": ["Tobias", "Robin", "Nils", "Nikolai"],
"Kids": [2, 1, 0, 0],
"City": ["Oststeinbek", "Oststeinbek", "Hamburg", "Lübeck"],
"Salary": [3000, 3200, 4000, 2500]}); print(df)
Name Kids City Salary
0 Tobias 2 Oststeinbek 3000
1 Robin 1 Oststeinbek 3200
2 Nils 0 Hamburg 4000
3 Nikolai 0 Lübeck 2500