Skip to content

Conversation

@simonjayhawkins
Copy link
Member

return values.any().item()

def sum(self, axis=0, *args, **kwargs):
def sum(self, axis=0, min_count=0, *args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add to the doc-string

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and type args if you can

count = len(valid_vals)
sp_sum = valid_vals.sum()
if self._null_fill_value:
if count < min_count:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use array_ops/check_below_min_count

@jreback jreback added this to the 1.1 milestone May 18, 2020
@jreback jreback merged commit e71052c into pandas-dev:master May 18, 2020
@jreback
Copy link
Contributor

jreback commented May 18, 2020

thanks!

@simonjayhawkins simonjayhawkins deleted the sparsearray-sum branch May 18, 2020 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Sparse Sparse Data Type

2 participants