Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
2个问题:
当我们删除/删除数据帧并使用 gc.collect() 时,python 是否清空了占用的 ram?
如果我们执行 df.to_csv(filename),那么 df 是指之后的文件还是仍然从内存(RAM)中引用的数据?
是的,它将是 RAM 中的空白空间。
不,它不会从文件中引用它仍然会引用 df 变量。