Print Visually Pleasing DataFrames in For Loop in Jupyter Notebook Pandas

后端 未结 1 1435
南旧
南旧 2021-02-07 09:44

Say I have these two Data Frames in a list,

sm = pd.DataFrame([[\"Forever\", \'BenHarper\'],[\"Steel My Kisses\", \'Kack Johnson\'],\\
                  [\"Diamo         


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-07 10:12

    You can use this:

    from IPython.display import display
    
    for i in df_list:
        display(i)
    

    Learn more tricks about rich and flexible formatting at Jupyter Notebook Viewer

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