Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to create DataFrames

import pandas as pd
data = {
	"A":[1,2,3],
    "B":[4,5,6],
    "C":[7,8,9]
}
index = [1,2,3,4,5,6,7,8,9]

pd.DataFrame(data=data, index=index)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #How #create #DataFrames
ADD COMMENT
Topic
Name
4+1 =