【Python知识库】pandas tricks

  1. Pandas显示设置(最大行数等)

    1
    2
    3
    4
    5
    6
    pd.set_option('max_rows', 500)
    #param choices
    # display.height
    # width
    # max_rows
    # max_columns
  2. 将Timestamp和Timedelta相加时报AttributeError: ‘NoneType’ object has no attribute ‘total_seconds’
    解决:重新安装pandas

1
pip install --force-reinstall pandas