python pandas dataframe线程安全吗? [英] python pandas dataframe thread safe?

查看:185
本文介绍了python pandas dataframe线程安全吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用多个线程来访问和删除我的pandas数据框中的数据.因此,我想知道pandas dataframe线程安全吗?

I am using multiple threads to access and delete data in my pandas dataframe. Because of this, I am wondering is pandas dataframe threadsafe?

推荐答案

可以以线程安全的方式访问基础ndarray中的数据,并自行承担风险.删除数据将很困难,因为更改DataFrame的大小通常需要创建一个新对象.我想在将来的某个时候更改此设置.

The data in the underlying ndarrays can be accessed in a threadsafe manner, and modified at your own risk. Deleting data would be difficult as changing the size of a DataFrame usually requires creating a new object. I'd like to change this at some point in the future.

这篇关于python pandas dataframe线程安全吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆