oldoc63 / learningDS

Learning DS with Codecademy and Books
0 stars 0 forks source link

Concatenate DataFrames #390

Open oldoc63 opened 1 year ago

oldoc63 commented 1 year ago

Sometimes, a dataset is broken into multiple tables. For instance, data is often split into multiple CSV files so that each download is smaller.

When we need to reconstruct a single DataFrame from multiple smaller DataFrames, we can use the method pd.concat([df1, df2, df3, ...]).

oldoc63 commented 1 year ago

An ice cream parlor and a bakery have decided to merge. The bakery's menu is stored in the DataFrame bakery, and the ice cream parlor's menu is stored in DataFrame ice_cream. Display menu using print.