Skip to content

Commit b4ed638

Browse files
GH1255 Initial commit
1 parent a8209bd commit b4ed638

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_series.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -866,11 +866,12 @@ def test_types_scalar_arithmetic() -> None:
866866
res_pow2: pd.Series = s**0.213
867867
res_pow3: pd.Series = s.pow(0.5)
868868

869-
# GH 103
869+
def test_types_complex_arithmetic() -> None:
870+
""" Test adding complex number to pd.Series[float] GH 103."""
870871
c = 1 + 1j
871-
s_flt = pd.Series([1.0, 2.0, 3.0])
872-
x = s_flt + c
873-
y = s_flt - c
872+
s = pd.Series([1.0, 2.0, 3.0])
873+
x = s + c
874+
y = s - c
874875

875876

876877
def test_types_groupby() -> None:

0 commit comments

Comments
 (0)