0

I have two dataframes:

df1

score id
59.09  1
65.27  2
65.05  3
60.15  4
65.30  5
65.61  6
59.21  7
59.70  8

And the other dataframe

df2

score  id
59.10  1
65.27  2
65.05  3
60.15  4
65.30  5
65.62  6
59.21  7
59.70  8

Now when I use compare_df and output it dropped the trailing 0 in df2score` 59.10.

enter image description here

I need this trailing zero to be always displayed.

I have a contraint to use compareDF only.

Deep
  • 528
  • 3
  • 12
  • 27
  • take a look at https://stackoverflow.com/questions/5458729/keeping-trailing-zeros – boski Feb 26 '19 at 08:12
  • ok, so to give a background to you, df1 has scores round to 2 decimal places (from 3) , so df1 is after rounding and it looks fine.The only issue is after i apply the compareDF function.Hope it clears the problem. – Deep Feb 26 '19 at 08:29
  • Can you raise an issue with a reprex in the Github repo here? - https://github.com/alexsanjoseph/compareDF - I can take a look at it – Alex Joseph Feb 27 '19 at 09:44

0 Answers0