Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create data frame in panda

# Import pandas library
import pandas as pd
 
# initialize list of lists
data = [['tom', 10], ['nick', 15], ['juli', 14]]
 
# Create the pandas DataFrame
df = pd.DataFrame(data, columns=['Name', 'Age'])
 
# print dataframe.
df
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #create #data #frame #panda
ADD COMMENT
Topic
Name
5+3 =