issue_comments: 773214721
This data as json
| html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
|---|---|---|---|---|---|---|---|---|---|---|---|
| https://github.com/pydata/xarray/issues/4858#issuecomment-773214721 | https://api.github.com/repos/pydata/xarray/issues/4858 | 773214721 | MDEyOklzc3VlQ29tbWVudDc3MzIxNDcyMQ== | 10194086 | 2021-02-04T10:48:27Z | 2021-02-04T10:48:27Z | MEMBER | @mark-boer @dcherian @max-sixty
Currently there are 3 different behaviors, depending on ```python import xarray as xr import numpy as np arr = xr.DataArray([5, 6, 7], coords=[("x", [0, 1, 2])]) arr.pad(x=1, constant_values=np.nan) ValueError: cannot convert float NaN to integerarr.pad(x=1, constant_values=None) casts arr to floatarr.pad(x=1, constant_values=1.5) casts constant_values to int``` |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
800118528 |