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.
Description
As far as I undesrtand, semantique is designed to return all results from reducer operations as
floattypes. However, thenreducer outputsint64types. This is becausenuses numpy.nansum to retrieve the values (see here), which deaults tointtypes.Reproducible example
A code chunck that reproduces the bug.
Expected behavior
The result of
nis converted tofloatto keep consistency.