Source Code:
(back to article)
import pandas as pd name = 'John' age = 30 city = 'New York' df = pd.DataFrame({'Name': name, 'Age': age, 'City': city}, index=[0]) print(df)
Result:
Report an issue