Import/Export Dataframes - CSVs

1 Import library

2 Import data from CSV file

There are multiple options:

#1

Importing from a CSV and then set an index column:

  Unnamed: 0  apples  oranges
0       June       3        0
1     Robert       2        3
2       Lily       0        7
3      David       1        2
            apples  oranges
Unnamed: 0                 
June             3        0
Robert           2        3
Lily             0        7
David            1        2

#2

Set the index column while importing from the CSV:

        apples  oranges
June         3        0
Robert       2        3
Lily         0        7
David        1        2

3 Export dataframe to CSV

2019-01-23