Source Code:
(back to article)
import pandas as pd import numpy as np data = { 'name': ['John', 'Mike', 'Sarah', 'Jane'], 'age': [25, 30, 28, 35], 'city': ['New York', 'San Francisco', 'Chicago', 'Miami'] } df = pd.DataFrame(data) print(df)
Result:
Report an issue