-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bug πSomething isn't workingSomething isn't working
Description
Description
As far as I undesrtand, semantique is designed to return all results from reducer operations as float types. However, the n reducer outputs int64 types. This is because n uses numpy.nansum to retrieve the values (see here), which deaults to int types.
Reproducible example
A code chunck that reproduces the bug.
import numpy as np
# Create an array with NaN values
arr = np.array([1, 2, 4, 5])
# Compute the sum of the array elements using numpy.nansum
result = np.nansum(arr)
print(result)
print(type(result))
#> 12
#> <class 'numpy.int64'>Expected behavior
The result of n is converted to float to keep consistency.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug πSomething isn't workingSomething isn't working