Answers for "create a dataframe from lisdt of list"

0

create a dataframe from lisdt of list

import pandas as pd 
# initialize list of lists
data = [['Geeks', 10], ['for', 15], ['geeks', 20]]
# Create the pandas DataFrame
df = pd.DataFrame(data, columns = ['Name', 'Age'])
Posted by: Guest on July-19-2021

Code answers related to "create a dataframe from lisdt of list"

Browse Popular Code Answers by Language