admin管理员组文章数量:1122846
I'm using pandas just to read an excel file and then give it back as list of lists.
data = (df.where(pd.notna(df), None)).values.tolist()
Now I wanted to apply polars with fastexcel since it is really much faster for larger files.
data = list(map(list, df.fill_null(value=None).rows()))
results in an error:
`... ValueError: must specify either a fill 'value' or 'strategy'
What would be the most compact solution to replace the pandas command with keeping value types according to excel file?
本文标签: nullpython polars fillnull with None doesn39t workStack Overflow
版权声明:本文标题:null - python polars fill_null with None doesn't work - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736282470a1926653.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论