@@ -648,17 +648,16 @@ def test_access_timezoned_datetimeindex_with_timezoned_label(self):
648
648
df = pd .DataFrame (index = first_january , data = np .arange (len (
649
649
first_january )))
650
650
651
- former_naive_endpoint_df = df [
651
+ result = df [
652
652
"2016-01-01T00:00-02:00" :"2016-01-01T02:03"
653
653
]
654
654
655
- former_non_naive_endpoint_df = df [
655
+ expected = df [
656
656
pd .Timestamp ("2016-01-01T00:00-02:00" ):
657
657
pd .Timestamp ("2016-01-01T02:03" )
658
658
]
659
659
660
- tm .assert_frame_equal (former_naive_endpoint_df ,
661
- former_non_naive_endpoint_df )
660
+ tm .assert_frame_equal (result , expected )
662
661
663
662
def test_access_naive_datetimeindex_with_timezoned_label (self ):
664
663
@@ -672,11 +671,11 @@ def test_access_naive_datetimeindex_with_timezoned_label(self):
672
671
first_january )))
673
672
674
673
with tm .assert_produces_warning (UserWarning ):
675
- former_naive_endpoint_df = df ["2016-01-01T00:00-02:00" :
676
- "2016-01-01T02:03" ]
674
+ result = df ["2016-01-01T00:00-02:00" :"2016-01-01T02:03" ]
677
675
678
- former_non_naive_endpoint_df = df [pd .Timestamp (
679
- "2016-01-01T00:00-02:00" ):pd .Timestamp ("2016-01-01T02:03" )]
676
+ expected = df [
677
+ pd .Timestamp ("2016-01-01T00:00-02:00" ):
678
+ pd .Timestamp ("2016-01-01T02:03" )
679
+ ]
680
680
681
- tm .assert_frame_equal (former_non_naive_endpoint_df ,
682
- former_naive_endpoint_df )
681
+ tm .assert_frame_equal (expected , result )
0 commit comments