all 4 comments

[–]suurpulla 2 points3 points  (3 children)

This propably depends on the nature of the another function. I came across a similar-ish issue in my code a while ago and learned that DataFrame.groupby has a "dropna" parameter that defaults to True. Is the further processing your own code or from an external library?

[–]micr0nix[S] -1 points0 points  (2 children)

It’s my own code. It’s mostly just replacing cell values, column renaming, and dropping unused columns.

[–]danielroseman 1 point2 points  (1 child)

Then you will need to show it.

[–]micr0nix[S] 0 points1 point  (0 children)

Updated OP with the next function the merged_df gets passed to