Pandas read_csv: Load CSV from File or URL πŸ“„

Learn how to load CSV files into pandas using index_col, na_values, and nrows with this quick tutorial.

Pandas read_csv: Load CSV from File or URL πŸ“„
Kimberly Fessel
10.1K views β€’ Nov 29, 2023
Pandas read_csv: Load CSV from File or URL πŸ“„

About this video

Learn how to load a CSV file into Python pandas with this quick tutorial. This video from my "Pandas Tips" series walks you through reading an CSV file into pandas from your computer and from a GitHub URL. You'll also be able to level up your pandas skills by setting the column that should be treated as the index of your pandas dataframe with the index_col option. Then tell Python pandas which strings should be treated like missing values with na_values. Finally, limit the number of rows pandas reads in from your CSV with the nrows argument. This option helps you only pull in a chunk of data when you are creating your data analysis pipeline. Check this video out to level up your Python pandas skills and make the most out of the pandas read_csv function -- it will save you a lot of data cleaning time later!

0:00 Introduction
0:55 GitHub Links
1:45 Read CSV from Computer
4:14 Read from URL
6:14 Level UP! index_col
8:00 Set Missing Values: na_values
11:07 Limit Rows: nrows
13:01 Conclusion

πŸ’» Github CODE and DATA πŸ’»
https://github.com/kimfetti/Videos/blob/master/Pandas_Tips/01_read_csv.ipynb
https://github.com/kimfetti/Videos/blob/master/Pandas_Tips/data/customers.csv

πŸŽ₯ Related VIDEOS πŸŽ₯
β€’ pandas read_excel - https://youtu.be/2FntKvSPGmU

πŸ“– BOOKS about pandas from my Amazon Storefront πŸ“–
https://www.amazon.com/shop/kimberlyfessel/list/3VZ611068AHD7?ref_=cm_sw_r_cp_ud_aipsflist_aipsfkimberlyfessel_AYP2JGHYHSZV3D21K3TB

β˜• Buy me a COFFEE β˜•
If you have enjoyed the content presented in this video and are able, consider buying a virtual cup of coffee to keep my channel going!
https://www.buymeacoffee.com/kimberlyfessel

#python #pandas #pythonprogramming

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

10.1K

Likes

152

Duration

13:43

Published

Nov 29, 2023

User Reviews

4.6
(2)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.