csv stands for Comma Separated Values
import csv
with open("filename.csv") as data_file:
data=csv.reader(data_file)
for row in data:
print('row')
Documentation: pandas.pydata.org
It is not preinstalled like turtle. You have to install it separately on your own.
import pandas
data=pandas.read_csv('filename.csv')
This program helps to read .csv files using python easily in a tabular format even within the terminal
two primary types:
- Series (1-dimensional)
- DataFrame (2-dimensional)
it can be checked by using type('data')
Basically, the whole table is a DataFrame and every column is a Series (like a list)