You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unstacking changes the data type to float for NaN's.
Are there thoughts on alternative options, e.g. fill_value=0 or return_boolean_mask, in order to retain the original data type?
Currently, I obtain a boolean missing array by checking for isnan.
Then I call fillnan(0) and convert the data type back to integer.
However, this is quite inefficient.
MCVE Code Sample
Expected Output
Problem Description
Unstacking changes the data type to float for
NaN
's.Are there thoughts on alternative options, e.g.
fill_value=0
orreturn_boolean_mask
, in order to retain the original data type?Currently, I obtain a boolean
missing
array by checking forisnan
.Then I call
fillnan(0)
and convert the data type back to integer.However, this is quite inefficient.
Output of
xr.show_versions()
xarray: 0.14.0
pandas: 0.25.1
numpy: 1.17.2
scipy: 1.3.1
netCDF4: 1.4.2
pydap: None
h5netcdf: 0.7.4
h5py: 2.9.0
Nio: None
zarr: 2.3.2
cftime: 1.0.3.4
nc_time_axis: None
PseudoNetCDF: None
rasterio: None
cfgrib: None
iris: None
bottleneck: None
dask: 2.5.2
distributed: 2.5.2
matplotlib: 3.1.1
cartopy: None
seaborn: 0.9.0
numbagg: None
setuptools: 41.4.0
pip: 19.2.3
conda: None
pytest: 5.0.1
IPython: 7.8.0
sphinx: None
The text was updated successfully, but these errors were encountered: