Closed kcpevey closed 2 years ago
Thanks for raising this, @kcpevey. I'll think of how to fix this. In the meantime, can you check if you can pass pd.read_csv(UPath(gs://).joinpath('bucket', 'filename.csv'))
. UPath
is an os.PathLike
object, so should be able to be passed directly.
@andrewfulton9 Nope, that fails with No such file or directory: 'gs:/ae....
i.e. its losing the second /
Thanks for checking that. I'll fix this as soon as I get a chance.
Can this issue be closed? Looks like that commit and merged PR might have resolved this.
I can do this:
but not this:
This is because
gives
'gs://bucket/colombia/filename.csv'
which maintains the leading//
while
gives
'gs:/bucket/filename.csv'
which is invalid.This is important because I need to be able to programmatically construct the path separate from the bucket. The idea behind this tool is to keep me from using
f
strings, but it appears that is my only option here.