jorisvandenbossche commented on code in PR #13564:
URL: https://github.com/apache/arrow/pull/13564#discussion_r917646594
##########
python/pyarrow/_fs.pyx:
##########
@@ -335,6 +448,21 @@ cdef class FileSystem(_Weakrefable):
tuple of (FileSystem, str path)
With (filesystem, path) tuple where path is the abstract path
inside the FileSystem instance.
+
+ Examples
+ --------
+ Create a FileSystem subclass with nonempty file:
+
+ >>> getfixture('local_fs')
+ <pyarrow._fs.LocalFileSystem object at ...>
+
+ Create a new FileSystem subclass from path:
+
+ >>> local_new, path =
fs.LocalFileSystem().from_uri('/tmp/fileinfo.dat')
Review Comment:
It would probably be good to show here the use of an actual URI (the above
uses an absolute local file path, so eg could use `file:///tmp/fieinfo.dat`
instead for a URI, or more typically something with `s3://...`)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]