Source Code:
(back to article)
import pandas as pd data = [['Name', 'Age', 'Gender'], ['Alice', '25', 'Female'], ['Bob', '30', 'Male'], ['Charlie', '35', 'Male']] df = pd.DataFrame(data) print(df.to_string())
Result:
Report an issue