pandas: Reading & Writing Data

Ha Khanh Nguyen (hknguyen)

1. Reading & Writing Data in Text Format

1.1 read_csv()

1.2 read_table()

Notes: I used the Unix (terminal/shell) command cat here to print the raw content of ex.txt file on Mac. You can do the same thing using the type command on Windows.

1.3 Handling missing values

2. Writing Data to Text Format

3. JSON Data

This lecture notes reference materials from Chapter 6 of Wes McKinney's Python for Data Analysis 2nd Ed.