markfairbanks / tidypolars

Tidy interface to polars
http://tidypolars.readthedocs.io
MIT License
321 stars 10 forks source link

`write_csv()` returns `'super' object has no attribute 'to_csv'` #219

Open alesvomacka opened 1 year ago

alesvomacka commented 1 year ago

Hi, There seems to be a problem with write_csv(). I can import tidypolars and the data just fine:

import tidypolars as tp

rents = tp.read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2022/2022-07-05/rent.csv")

But when I try to export the data frame as a csv file:

rents.write_csv("rents.csv")

I get an error stating 'super' object has no attribute 'to_csv'.

The data come from the Tidytuesday repo. Python version is 3.10.8 and tidypolars is 0.2.19. I'm on macOS 13.

markfairbanks commented 1 year ago

Thanks for catching this - looks like polars deprecated .to_csv(). I'll update tidypolars to fix this.