Show all pandas dataframes in an IPython Notebook

后端 未结 2 1737
情深已故
情深已故 2021-02-04 09:51

How could I identify all the Pandas DataFrames created in my current notebook session?

Something like in SAS seeing all the members in the Work library would be ideal.

2条回答
  •  情歌与酒
    2021-02-04 10:24

    If you mean memory try something like:

    for i in dir():
        if type(globals()[i]) == pandas.DataFrame:
            print(i)
    

    or some such.

提交回复
热议问题