Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Pandas export Dataframe to csv File

import pandas as pd

data = {'Product': ['Desktop Computer','Tablet','Printer','Laptop'],
        'Price': [850,200,150,1300]
        }

df = pd.DataFrame(data, columns= ['Product', 'Price'])

print (df)
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #Python #Pandas #export #Dataframe #csv #File
ADD COMMENT
Topic
Name
3+4 =