Getting Started with Pandas Groupby

Pandas groupby function is one of the most useful functions enabling a bunch of data munging activities. A simple use case of groupby function is that we can group a bigger dataframe by a single variable in the dataframe into multiple smaller dataframes. Typically, after grouping by a variable, we perform some computations on each… Continue reading Getting Started with Pandas Groupby

How To Add Identifier Column When Concatenating Pandas data frames?

Pandas concat() function is great for concating two data frames or appending one dataframe to another with same columns. Sometimes, you might want to keep an identifier for each appended dataframe. In this post, we will see an example of how to concat two dataframes with an identifier. Let us import Pandas and numpy to… Continue reading How To Add Identifier Column When Concatenating Pandas data frames?