Google Colab reduces data in columns



  • When reading the Google Colab file through read_csv, the table shows the first two digits after a comma of four. With the decommissioning of the post-French, which is recorded from this file, the numbers are normal (with 4 post-coloured signs) and the table still shows only 2 post-colour signs. Question: I need visual knowledge of the data-- how to build a complete display (namely Google Colab).



  • It's weird, I have six signs after a comma in the bulb. But you can try this option:

    import pandas as pd
    

    pd.options.display.float_format = '{:,.4f}'.format

    Trailer https://stackoverflow.com/a/20937592/8324991 In English-speaking SO.



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2