相关疑难解决方法(0)

如何将熊猫数据框转换为命名元组

如何将pandas数据帧转换为namedtuple?此任务将进行多处理工作。

def df2namedtuple(df):
   return tuple(df.row)
Run Code Online (Sandbox Code Playgroud)

python namedtuple pandas

2
推荐指数
1
解决办法
3034
查看次数

标签 统计

namedtuple ×1

pandas ×1

python ×1