How to add a series to a data frame in pandas?

How to add the ‘result’ series to the ‘my_data’ data frame? Both are having same 355 rows.

Hi, Koushik

There are a few ways to do this, and I’ll point you in the direction of the function pd.concat

Below is an example of how it works

I urge you to try other ways of merging pandas objects(Series, DataFrames) as well.