read the whole csv data from file python code example
Example 1: read csv python
import pandas as pd
data = pd.read_csv("filename.csv")
data.head()
Example 2: accessing element from csv file in python
import itertools
# ...
with open(filename, 'rb') as f:
row = next(itertools.islice(csv.reader(f), row_number, row_number+1))
print row[column_number]