Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create a df in pandas

import pandas as pd

data = {'First Column Name':  ['First value', 'Second value',...],
        'Second Column Name': ['First value', 'Second value',...],
         ....
        }

df = pd.DataFrame (data, columns = ['First Column Name','Second Column Name',...])
print (df)
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #create #df #pandas
ADD COMMENT
Topic
Name
3+9 =