You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pd.read_csv(ln.Artifact("mypath.csv"))
This is not a correct way to load from an artifact, it is better to save it first.
Doesn't this get an artifact from the db?
Also the correct way should be the path of least resistance.
The file is just an example. I use polars, not pandas, and hence I need pl.read_csv instead. This goes for other people who may want other means of opening a csv file, including as raw text.
Can
ln.Artifact
implement the fspath() protocol? The use case is when I want to load a file as if it's from a local path without any magic.For example,
pd.read_csv(ln.Artifact("mypath.csv"))
.In this case, ln.Artifact should automatically call
.cache()
.The text was updated successfully, but these errors were encountered: