How to read and concatenate multiple data files like.csv
data file in pandas with 3 convenient methods using concrete real-world datasets
In most cases, we only need to read one dataset for analysis and visualization, which we have already discussed in many of the previous tutorial articles. In many other cases, however, we need to read multiple datasets from different places online, from the computer drives or mobile disks, etc.
This article will use the dataset from Kaggle to illustrate how to read multiple .csv
data file with Pandas. You can manually download two or three .csv
files in order to follow the examples in this tutorial article. You can use the methods introduced in this article and another article to automatically download the whole dataset from Kaggle into your working directory.