tidypolars icon indicating copy to clipboard operation
tidypolars copied to clipboard

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

Open alesvomacka opened this issue 2 years ago • 1 comments

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.

alesvomacka avatar Nov 24 '22 17:11 alesvomacka

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

markfairbanks avatar Nov 28 '22 22:11 markfairbanks