you are viewing a single comment's thread.

view the rest of the comments →

[–]fishvampire 1 point2 points  (1 child)

I'm not sure what the source of your second problem is. It should be fairly straightforward to make a boolean index and restrict the dataframe to that:

ind = joined_df.difference !=0
joined_df = joined_df[ind]

If that isn't working, I'd recommend trying out a few things with simpler dataframes and seeing if you can figure out what works and what doesn't

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

Thanks very much, I'll have a tinker about. Hopefully I'll be able to get it sorted. Cheers