Skip to content

CLN remove trailing commas #36222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 8, 2020
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions pandas/tests/io/pytables/test_timezones.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_append_with_timezones_dateutil(setup_path):
dti = dti._with_freq(None) # freq doesnt round-trip

# GH 4098 example
df = DataFrame(dict(A=Series(range(3), index=dti,)))
df = DataFrame(dict(A=Series(range(3), index=dti)))

_maybe_remove(store, "df")
store.put("df", df)
Expand Down Expand Up @@ -197,7 +197,7 @@ def test_append_with_timezones_pytz(setup_path):
dti = dti._with_freq(None) # freq doesnt round-trip

# GH 4098 example
df = DataFrame(dict(A=Series(range(3), index=dti,)))
df = DataFrame(dict(A=Series(range(3), index=dti)))

_maybe_remove(store, "df")
store.put("df", df)
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/io/test_feather.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_basic(self):
pd.Timestamp("20130103"),
],
"dtns": pd.DatetimeIndex(
list(pd.date_range("20130101", periods=3, freq="ns")), freq=None,
list(pd.date_range("20130101", periods=3, freq="ns")), freq=None
),
}
)
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/io/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def test_read_with_creds_from_pub_bucket():
os.environ.setdefault("AWS_ACCESS_KEY_ID", "foobar_key")
os.environ.setdefault("AWS_SECRET_ACCESS_KEY", "foobar_secret")
df = read_csv(
"s3://gdelt-open-data/events/1981.csv", nrows=5, sep="\t", header=None,
"s3://gdelt-open-data/events/1981.csv", nrows=5, sep="\t", header=None
)
assert len(df) == 5