How to stop my pandas data table from being truncated when printed?

前端 未结 1 1259
名媛妹妹
名媛妹妹 2020-12-30 10:25

I\'ve written code that reads in two strings then compares them for similar words. A table is then produced with the data.

My problem is that it keeps splitting int

相关标签:
1条回答
  • 2020-12-30 10:43

    You can set options on how to display your dataframes:

    pd.set_option('display.max_rows', 500)
    pd.set_option('display.max_columns', 500)
    pd.set_option('display.width', 150)
    

    If you add this before you print anything, your dataframe will be printed in the format you'd expect

    0 讨论(0)
提交回复
热议问题