Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create dataframe in python

import pandas as pd
  
# intialise data of lists.
data = {'Name':['Tom', 'nick', 'krish', 'jack'],
        'Age':[20, 21, 19, 18]}
  
# Create DataFrame
df = pd.DataFrame(data)
  
# Print the output.
df
 
PREVIOUS NEXT
Tagged: #create #dataframe #python
ADD COMMENT
Topic
Name
3+4 =