Combine Multiple CSVs into One DataFrame π
Learn how to merge multiple CSV files into a single pandas DataFrame using a Python for loop.

Python and Pandas with Reuven Lerner
36.8K views β’ Feb 15, 2022

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/.
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) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.