我正在尝试将这段代码转换为极坐标。但无法找到与阅读 excel 具有相同论点等效的极坐标。
这是 pandas 的方法
df = pd.read_excel(file_path, header=2, dtype={'amount': str, 'date': object,
na_values=[''], keep_default_na=False)```
一种可能的解决方案,基于将
pandas
数据帧转换为 polars
数据帧的想法:
import polars as pl
pl_df = pl.DataFrame(df)