8000 Impl Series.skew() by Rubtsowa · Pull Request #813 · IntelPython/sdc · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Impl Series.skew() #813

Merged
merged 16 commits into from
Apr 27, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

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
not use global_input_data_integer in tests
  • Loading branch information
Rubtsowa committed Apr 23, 2020
commit 9888b7bbb05d1751822d09ae52847bb169b1a9dc
12 changes: 6 additions & 6 deletions sdc/functions/numpy_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,9 +985,9 @@ def np_skew(arr):
def skew_impl(arr):
len_val = len(arr)
n = 0
_sum = 0
square_sum = 0
cube_sum = 0
_sum = 0.
square_sum = 0.
cube_sum = 0.

for idx in numba.prange(len_val):
if not numpy.isnan(arr[idx]):
Expand Down Expand Up @@ -1019,9 +1019,9 @@ def np_nanskew(arr):
def nanskew_impl(arr):
len_val = len(arr)
n = 0
_sum = 0
square_sum = 0
cube_sum = 0
_sum = 0.
square_sum = 0.
cube_sum = 0.

for idx in numba.prange(len_val):
if not numpy.isnan(arr[idx]):
Expand Down
2 changes: 1 addition & 1 deletion sdc/tests/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -7127,7 +7127,7 @@ def test_impl(series, axis, skipna):
[np.nan, np.nan, np.inf],
[np.inf, 0, np.inf, 1, 2, 3, 4, 5]
]
all_test_data = test_data + test_global_input_data_numeric
all_test_data = test_data + test_global_input_data_float64
for data in all_test_data:
with self.subTest(data=data):
s = pd.Series(data)
Expand Down
0