Skip to content

Commit c06e26c

Browse files
mylestm9k1
authored andcommitted
DOC: Accessing files from a S3 bucket. (pandas-dev#23639)
1 parent 87eeb2d commit c06e26c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/source/io.rst

+8-1
Original file line numberDiff line numberDiff line change
@@ -1580,12 +1580,19 @@ You can pass in a URL to a CSV file:
15801580
df = pd.read_csv('https://download.bls.gov/pub/time.series/cu/cu.item',
15811581
sep='\t')
15821582
1583-
S3 URLs are handled as well:
1583+
S3 URLs are handled as well but require installing the `S3Fs
1584+
<https://pypi.org/project/s3fs/>`_ library:
15841585

15851586
.. code-block:: python
15861587
15871588
df = pd.read_csv('s3://pandas-test/tips.csv')
15881589
1590+
If your S3 bucket requires cedentials you will need to set them as environment
1591+
variables or in the ``~/.aws/credentials`` config file, refer to the `S3Fs
1592+
documentation on credentials
1593+
<https://s3fs.readthedocs.io/en/latest/#credentials>`_.
1594+
1595+
15891596

15901597
Writing out Data
15911598
''''''''''''''''

0 commit comments

Comments
 (0)