Skip to content

Commit 62156df

Browse files
committed
Unify GH references for frame/test_arithmetic.py
1 parent c705819 commit 62156df

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pandas/tests/frame/test_arithmetic.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class TestFrameComparisons(object):
2121
def test_flex_comparison_nat(self):
22-
# GH#15697, GH#22163 df.eq(NaT) should behave like df == NaT,
22+
# GH 15697, GH 22163 df.eq(NaT) should behave like df == NaT,
2323
# and _definitely_ not be NaN
2424
df = DataFrame([NaT])
2525

@@ -37,7 +37,7 @@ def test_flex_comparison_nat(self):
3737
assert result.iloc[0, 0].item() is True
3838

3939
def test_mixed_comparison(self):
40-
# GH#13128, GH#22163 != datetime64 vs non-dt64 should be False,
40+
# GH 13128, GH 22163 != datetime64 vs non-dt64 should be False,
4141
# not raise TypeError
4242
# (this appears to be fixed before #22163, not sure when)
4343
df = DataFrame([['1989-08-01', 1], ['1989-08-01', 2]])
@@ -50,7 +50,7 @@ def test_mixed_comparison(self):
5050
assert result.all().all()
5151

5252
def test_df_boolean_comparison_error(self):
53-
# GH#4576
53+
# GH 4576
5454
# boolean comparisons with a tuple/list give unexpected results
5555
df = DataFrame(np.arange(6).reshape((3, 2)))
5656

@@ -79,7 +79,7 @@ def test_df_string_comparison(self):
7979

8080
@pytest.mark.parametrize('opname', ['eq', 'ne', 'gt', 'lt', 'ge', 'le'])
8181
def test_df_flex_cmp_constant_return_types(self, opname):
82-
# GH#15077, non-empty DataFrame
82+
# GH 15077, non-empty DataFrame
8383
df = DataFrame({'x': [1, 2, 3], 'y': [1., 2., 3.]})
8484
const = 2
8585

@@ -88,7 +88,7 @@ def test_df_flex_cmp_constant_return_types(self, opname):
8888

8989
@pytest.mark.parametrize('opname', ['eq', 'ne', 'gt', 'lt', 'ge', 'le'])
9090
def test_df_flex_cmp_constant_return_types_empty(self, opname):
91-
# GH#15077 empty DataFrame
91+
# GH 15077 empty DataFrame
9292
df = DataFrame({'x': [1, 2, 3], 'y': [1., 2., 3.]})
9393
const = 2
9494

@@ -102,7 +102,7 @@ def test_df_flex_cmp_constant_return_types_empty(self, opname):
102102

103103
class TestFrameFlexArithmetic(object):
104104
def test_df_add_td64_columnwise(self):
105-
# GH#22534 Check that column-wise addition broadcasts correctly
105+
# GH 22534 Check that column-wise addition broadcasts correctly
106106
dti = date_range('2016-01-01', periods=10)
107107
tdi = timedelta_range('1', periods=10)
108108
tser = Series(tdi)
@@ -113,7 +113,7 @@ def test_df_add_td64_columnwise(self):
113113
tm.assert_frame_equal(result, expected)
114114

115115
def test_df_add_flex_filled_mixed_dtypes(self):
116-
# GH#19611
116+
# GH 19611
117117
dti = date_range('2016-01-01', periods=3)
118118
ser = Series(['1 Day', 'NaT', '2 Days'], dtype='timedelta64[ns]')
119119
df = DataFrame({'A': dti, 'B': ser})
@@ -225,7 +225,7 @@ def test_arith_flex_series(self, simple_frame):
225225
tm.assert_frame_equal(df.div(row), df / row)
226226
tm.assert_frame_equal(df.div(col, axis=0), (df.T / col).T)
227227

228-
# broadcasting issue in GH#7325
228+
# broadcasting issue in GH 7325
229229
df = DataFrame(np.arange(3 * 2).reshape((3, 2)), dtype='int64')
230230
expected = DataFrame([[np.nan, np.inf], [1.0, 1.5], [1.0, 1.25]])
231231
result = df.div(df[0], axis='index')
@@ -237,7 +237,7 @@ def test_arith_flex_series(self, simple_frame):
237237
tm.assert_frame_equal(result, expected)
238238

239239
def test_arith_flex_zero_len_raises(self):
240-
# GH#19522 passing fill_value to frame flex arith methods should
240+
# GH 19522 passing fill_value to frame flex arith methods should
241241
# raise even in the zero-length special cases
242242
ser_len0 = Series([])
243243
df_len0 = DataFrame([], columns=['A', 'B'])
@@ -252,7 +252,7 @@ def test_arith_flex_zero_len_raises(self):
252252

253253
class TestFrameArithmetic(object):
254254
def test_df_bool_mul_int(self):
255-
# GH#22047, GH#22163 multiplication by 1 should result in int dtype,
255+
# GH 22047, GH 22163 multiplication by 1 should result in int dtype,
256256
# not object dtype
257257
df = DataFrame([[False, True], [False, False]])
258258
result = df * 1

0 commit comments

Comments
 (0)