Source Code:
(back to article)
import pandas as pd # erstelle ein leeres DataFrame df = pd.DataFrame() # füge Daten zum DataFrame hinzu df['name'] = ['John', 'Jane', 'Bob'] df['alter'] = [30, 25, 35] df['stadt'] = ['New York', 'Los Angeles', 'Chicago'] print(df)
Result:
Report an issue