Combine Multiple CSVs into One DataFrame πŸ“Š

Learn how to merge multiple CSV files into a single pandas DataFrame using a Python for loop.

Combine Multiple CSVs into One DataFrame πŸ“Š
Python and Pandas with Reuven Lerner
36.8K views β€’ Feb 15, 2022
Combine Multiple CSVs into One DataFrame πŸ“Š

About this video

Data sets often come as multiple CSV files. How can you read those into a single pandas data frame? In this video, I show you how to use a Python "for" loop, or even a list comprehension, along with the "glob" module and the pd.concat function, to accomplish this.

The Jupyter notebook for this video is at https://github.com/reuven/youTube-notebooks, and my free, weekly newsletter about Python and software engineering is at https://BetterDevelopersWeekly.com/.

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

36.8K

Likes

692

Duration

8:09

Published

Feb 15, 2022

User Reviews

4.7
(7)
Rate:

Related Trending Topics

LIVE TRENDS

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