Python python 脚本和 Anaconda Spyder 中数据帧的内存使用
Python memory use for DataFrames in python script and in Anaconda Spyder
Python 101题。 pandas 数据框创建为:
df1=pandas.DataFrame(data, index=index, columns=columns) # 占用 100 MB 内存
现在
df2=df1 # 内存占用会翻倍吗?
在名为 something.py 并作为 python something.py 执行的脚本中有什么效果?执行完成后卸载内存。请确认。
我在说Anaconda Spyder时运行something.py有什么效果。除非我断开与内核的连接,否则不会卸载 spyder 内存。这是真的吗?
感谢大家对 Python 新手的耐心等待
What is the effect in a script called something.py and executed as python something.py? Memory is unloaded after completion of execution. Please confirm.
是的,我认为内存在执行后被释放了。
What is the effect when I run something.py in say Anaconda Spyder. The spyder memory will not be unloaded unless I disconnect from the kernel. Is that a true statement?
Spyder 不保存内存,只有与控制台关联的 IPython 内核保存。要释放该内存,您需要重新启动内核。
Python 101题。 pandas 数据框创建为: df1=pandas.DataFrame(data, index=index, columns=columns) # 占用 100 MB 内存 现在 df2=df1 # 内存占用会翻倍吗?
在名为 something.py 并作为 python something.py 执行的脚本中有什么效果?执行完成后卸载内存。请确认。
我在说Anaconda Spyder时运行something.py有什么效果。除非我断开与内核的连接,否则不会卸载 spyder 内存。这是真的吗?
感谢大家对 Python 新手的耐心等待
What is the effect in a script called something.py and executed as python something.py? Memory is unloaded after completion of execution. Please confirm.
是的,我认为内存在执行后被释放了。
What is the effect when I run something.py in say Anaconda Spyder. The spyder memory will not be unloaded unless I disconnect from the kernel. Is that a true statement?
Spyder 不保存内存,只有与控制台关联的 IPython 内核保存。要释放该内存,您需要重新启动内核。