User Tools

Site Tools


loading_data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

loading_data [2015/10/03 18:16] (current)
vincenzo created
Line 1: Line 1:
 +Using the CSV module:
 +<code python>
 +import csv
 +with open('​some.csv',​ '​rb'​) as f:
 +    reader = csv.reader(f)
 +    for row in reader:
 +        print row
 +</​code>​
  
 +Using pandas dataframe:
 +<code python>
 +import pandas as pd
 +print pd.read_csv('​value.txt'​)
 +</​code>​
loading_data.txt ยท Last modified: 2015/10/03 18:16 by vincenzo