Skip to content

Commit f29a839

Browse files
committed
Unify GH references for frame/test_arithmetic.py
1 parent f56bfde commit f29a839

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
@@ -17,7 +17,7 @@
1717

1818
class TestFrameComparisons(object):
1919
def test_flex_comparison_nat(self):
20-
# GH#15697, GH#22163 df.eq(pd.NaT) should behave like df == pd.NaT,
20+
# GH 15697, GH 22163 df.eq(pd.NaT) should behave like df == pd.NaT,
2121
# and _definitely_ not be NaN
2222
df = pd.DataFrame([pd.NaT])
2323

@@ -35,7 +35,7 @@ def test_flex_comparison_nat(self):
3535
assert result.iloc[0, 0].item() is True
3636

3737
def test_mixed_comparison(self):
38-
# GH#13128, GH#22163 != datetime64 vs non-dt64 should be False,
38+
# GH 13128, GH 22163 != datetime64 vs non-dt64 should be False,
3939
# not raise TypeError
4040
# (this appears to be fixed before #22163, not sure when)
4141
df = pd.DataFrame([['1989-08-01', 1], ['1989-08-01', 2]])
@@ -48,7 +48,7 @@ def test_mixed_comparison(self):
4848
assert result.all().all()
4949

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

@@ -77,7 +77,7 @@ def test_df_string_comparison(self):
7777

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

@@ -86,7 +86,7 @@ def test_df_flex_cmp_constant_return_types(self, opname):
8686

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

@@ -100,7 +100,7 @@ def test_df_flex_cmp_constant_return_types_empty(self, opname):
100100

101101
class TestFrameFlexArithmetic(object):
102102
def test_df_add_td64_columnwise(self):
103-
# GH#22534 Check that column-wise addition broadcasts correctly
103+
# GH 22534 Check that column-wise addition broadcasts correctly
104104
dti = pd.date_range('2016-01-01', periods=10)
105105
tdi = pd.timedelta_range('1', periods=10)
106106
tser = pd.Series(tdi)
@@ -112,7 +112,7 @@ def test_df_add_td64_columnwise(self):
112112
tm.assert_frame_equal(result, expected)
113113

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

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

238238
def test_arith_flex_zero_len_raises(self):
239-
# GH#19522 passing fill_value to frame flex arith methods should
239+
# GH 19522 passing fill_value to frame flex arith methods should
240240
# raise even in the zero-length special cases
241241
ser_len0 = pd.Series([])
242242
df_len0 = pd.DataFrame([], columns=['A', 'B'])
@@ -251,7 +251,7 @@ def test_arith_flex_zero_len_raises(self):
251251

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

0 commit comments

Comments
 (0)