Learn Before
Concept
Merging in Pandas
Data in Pandas data objects are easily merged together. Given a series, we can concatenate it into a date frame. Given
pieces = [df[:3], df[3:7], df[7:]]
pd.concat(pieces)
This would concatenate the pieces based off their original index values and piece the data frame back together again.
0
1
Updated 2021-05-29
Tags
Python Programming Language
Data Science