Pandas: Create a Dataframe from Lists (5 Ways!) • datagy
https://datagy.io/pandas-dataframe-from-list30.09.2021 · Let’s look at how we can create a Pandas dataframe from a list of lists: # Create a Pandas Dataframe from a multi-dimensional list of lists import pandas as pd data = [ ['Katie', 32, 'London'], ['Nik', 32, 'Toronto'], ['James', 36, 'Atlanta'], ['Evan', 31, 'Madrid']] df = pd.DataFrame(data, columns=['Name', 'Age', 'Location']) print(df)