Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pandas/tests/io/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import pytest

import pandas.util._test_decorators as td

from pandas import read_csv

from pandas.io.common import is_s3_url
Expand All @@ -23,3 +25,10 @@ def test_streaming_s3_objects():
for el in data:
body = StreamingBody(BytesIO(el), content_length=len(el))
read_csv(body)


@td.skip_if_no("s3fs")
def test_read_csv_from_public_bucket():
# https://github.com/pandas-dev/pandas/issues/34626
result = read_csv("s3://nyc-tlc/misc/taxi _zone_lookup.csv")
assert result.shape == (265, 4)