Open liufeimath opened 3 months ago
Perhaps the code should be updated to use the full url?
df = pl.read_csv("https://github.com/pola-rs/polars/raw/main/docs/data/iris.csv")
You can also save the file locally:
Got it. Then yes I think it's better to use the full path so that the user guide code example can be directly runnable. Thanks!
Description
I see the
iris.csv
path in e.g. this web doc. But when I rundf = pl.read_csv("docs/data/iris.csv")
, python saysFileNotFoundError: No such file or directory (os error 2): docs/data/iris.csv
Does it mean that I need to clone the github repo to make the
docs
path work, or am I installing polars wrong? I just didpip install polars
, nothing more.Link
https://docs.pola.rs/user-guide/concepts/lazy-vs-eager/