如何使用极坐标读取Excel文件?

问题描述 投票:0回答:1

我正在尝试将这段代码转换为极坐标。但无法找到与阅读 excel 具有相同论点等效的极坐标。

这是 pandas 的方法


df = pd.read_excel(file_path, header=2, dtype={'amount': str, 'date': object,
                                    na_values=[''], keep_default_na=False)```
python python-3.x pandas dataframe python-polars
1个回答
0
投票

一种可能的解决方案,基于将

pandas
数据帧转换为
polars
数据帧的想法:

import polars as pl

pl_df = pl.DataFrame(df)
© www.soinside.com 2019 - 2024. All rights reserved.