Python Pandas Tutorial 4: Reading and Writing Excel and CSV Files

This tutorial demonstrates how to read and write Excel and CSV files using pandas, including techniques for cleaning and processing messy data during import.

Python Pandas Tutorial 4: Reading and Writing Excel and CSV Files
codebasics
772.6K views β€’ Feb 4, 2017
Python Pandas Tutorial 4: Reading and Writing Excel and CSV Files

About this video

This tutorial covers how to read/write excel and csv files in pandas. We will cover,
1) Different options on cleaning up messy data while reading csv/excel files
2) Use convertors to transform data read from excel file
3) Export only portion of dataframe to excel file

Topics that are covered in this Python Pandas Video:
0:00 Introduction
1:26 Read CSV file using read_csv() method
2:39 Skip rows in dataframe using "skiprows"
4:44 Import data from CSV file with "null header"
6:28 Read limited data from CSV file
7:19 Clean up messy data from file "not available" and "n.a." replace with "na_values"
9:01 Supply dictionary for replace with "na_values"
11:40 Write dataframe into "csv" file with "to_csv() method"
15:27 Read excel file using read_excel() method
18:03 Converters argument in read_excel() method
20:17 Write dataframe into "excel" file with "to_excel() method"
22:56 Use ExcelWritter() class
25:13 All properties for Read Write Excel CSV File

Do you want to learn technology from me? Check https://codebasics.io/?utm_source=description&utm_medium=yt&utm_campaign=description&utm_id=description for my affordable video courses.

Very Simple Explanation Of Neural Network: https://www.youtube.com/watch?v=ER2It2mIagI

Code (jupyter notebook link): https://github.com/codebasics/py/tree/master/pandas/4_read_write_to_excel

Next Video:
Python Pandas Tutorial 5: Handle Missing Data: fillna, dropna, interpolate: https://www.youtube.com/watch?v=EaGbS7eWSs0&list=PLeo1K3hjS3uuASpe-1LjfG5f14Bnozjwy&index=5

Popular Playlist:
Complete python course: https://www.youtube.com/playlist?list=PLeo1K3hjS3uv5U-Lmlnucd7gqF-3ehIh0

Data science course: https://www.youtube.com/playlist?list=PLeo1K3hjS3us_ELKYSj_Fth2tIEkdKXvV

Machine learning tutorials: https://www.youtube.com/playlist?list=PLeo1K3hjS3uvCeTYTeyfe0-rN5r8zn9rw

Pandas tutorials: https://www.youtube.com/playlist?list=PLeo1K3hjS3uuASpe-1LjfG5f14Bnozjwy

Git github tutorials: https://www.youtube.com/playlist?list=PLeo1K3hjS3usJuxZZUBdjAcilgfQHkRzW

Matplotlib course: https://www.youtube.com/playlist?list=PLeo1K3hjS3uu4Lr8_kro2AqaO6CFYgKOl

Data structures course: https://www.youtube.com/playlist?list=PLeo1K3hjS3uu_n_a__MI_KktGTLYopZ12

Data Science Project - Real Estate Price Prediction: https://www.youtube.com/watch?v=rdfbcdP75KI&list=PLeo1K3hjS3uu7clOTtwsp94PcHbzqpAdg


To download csv and code for all tutorials: go to https://github.com/codebasics/py, click on a green button to clone or download the entire repository and then go to relevant folder to get access to that specific file.

🌎 My Website For Video Courses: https://codebasics.io/?utm_source=description&utm_medium=yt&utm_campaign=description&utm_id=description

Need help building software or data analytics and AI solutions? My company https://www.atliq.com/ can help. Click on the Contact button on that website.

#️⃣ Social Media #️⃣
πŸ”— Discord: https://discord.gg/r42Kbuk
πŸ“Έ Dhaval's Personal Instagram: https://www.instagram.com/dhavalsays/
πŸ“Έ Codebasics Instagram: https://www.instagram.com/codebasicshub/
πŸ”Š Facebook: https://www.facebook.com/codebasicshub
πŸ“± Twitter: https://twitter.com/codebasicshub
πŸ“ Linkedin (Personal): https://www.linkedin.com/in/dhavalsays/
πŸ“ Linkedin (Codebasics): https://www.linkedin.com/company/codebasics/
πŸ”— Patreon: https://www.patreon.com/codebasics?fan_landing=true

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

772.6K

Likes

10.3K

Duration

27:03

Published

Feb 4, 2017

User Reviews

4.7
(154)
Rate:

Related Trending Topics

LIVE TRENDS

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

Trending Now