Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

creating dataframe

import pandas as pd
 
# initialise data of lists.
data = {'Name':['Tom', 'nick', 'krish', 'jack'],
        'Age':[20, 21, 19, 18]}
 
# Create DataFrame
df = pd.DataFrame(data)
 
# Print the output.
df
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #creating #dataframe
ADD COMMENT
Topic
Name
1+9 =