Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0e10a9d
remove read_excel kwd NotImplemented error, update documentation #11544
grahamjeffries Jan 15, 2016
925ce1b
Update tests
jorisvandenbossche Sep 30, 2016
b1c7f87
add whatsnew
jorisvandenbossche Sep 30, 2016
656ec44
Fix detection to raise warning
jorisvandenbossche Sep 30, 2016
0b65a7a
update wording
jorisvandenbossche Sep 30, 2016
a1d966a
DOC: GH21194
msmarchena May 31, 2018
5603bd2
BUG: GH21194
msmarchena May 31, 2018
1886cc3
TST: adding tz tests
msmarchena May 31, 2018
09348c6
solving PEP8 errors
msmarchena Jun 1, 2018
e2cc031
DOC update
msmarchena Jun 1, 2018
9cb6242
Merge remote-tracking branch 'upstream/master'
msmarchena Jun 1, 2018
d353ddb
DOC update
msmarchena Jun 1, 2018
b421c2e
DOC update
msmarchena Jun 1, 2018
0996c19
Merge branch 'master' of github.com:msmarchena/pandas into PR21194
msmarchena Jun 1, 2018
1b398d9
Doc update
msmarchena Jun 1, 2018
91a4547
Doc update
msmarchena Jun 1, 2018
f76d423
parametrizing tests
msmarchena Jun 4, 2018
8cc507b
parametrizing tests
msmarchena Jun 4, 2018
8441881
parametrizing tests
msmarchena Jun 4, 2018
d3cc807
Implementing pytest.mark.parametrize
msmarchena Jun 25, 2018
8726d0e
Implementing pytest.mark.parametrize
msmarchena Jun 25, 2018
e1cdfa5
Documentation update
msmarchena Jun 25, 2018
246326d
Merge branch 'pr/12051' of https://github.com/msmarchena/pandas into …
msmarchena Jun 25, 2018
4c91628
Merging
msmarchena Jun 25, 2018
79dbfe6
Merge branch 'PR21194' of https://github.com/msmarchena/pandas into P…
msmarchena Jun 25, 2018
a5bc90b
Merge branch 'master' into PR21194
msmarchena Aug 3, 2018
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
solving PEP8 errors
  • Loading branch information
msmarchena committed Jun 1, 2018
commit 09348c6cd8d5660a879d8247d91d0cbf6e6176ed
9 changes: 6 additions & 3 deletions pandas/tests/frame/test_asof.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def test_time_zone_aware_index(self):
# Testing if DataFrame index preserve timezone (UTC)
df = DataFrame(data=[1, 2], index=[timestamp1, timestamp2])
result = df.asof(timestamp_internal)
expected = Series(2.0, index=RangeIndex(start=0, stop=1, step=1), name=timestamp_internal)
expected = Series(2.0, index=RangeIndex(start=0, stop=1, step=1),
Copy link
Member

@mroeschke mroeschke Jun 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RangeIndex isn't explicitly needed to construct the Series I think. It's created by default.

name=timestamp_internal)
tm.assert_series_equal(result, expected)

def test_different_time_zones(self):
Expand All @@ -129,5 +130,7 @@ def test_different_time_zones(self):
# Testing awareness of DataFrame index considering different time zone
df = DataFrame(data=[3, 4], index=[timestamp_utc1, timestamp_utc2])
result = df.asof(timestamp_tz1)
expected = Series(3.0, index=RangeIndex(start=0, stop=1, step=1), name=timestamp_tz1)
tm.assert_series_equal(result, expected)
expected = Series(3.0, index=RangeIndex(start=0, stop=1, step=1),
name=timestamp_tz1)
tm.assert_series_equal(result, expected)