home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1560572196

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/7871#issuecomment-1560572196 https://api.github.com/repos/pydata/xarray/issues/7871 1560572196 IC_kwDOAMm_X85dBHEk 10194086 2023-05-24T07:12:28Z 2023-05-24T07:12:28Z MEMBER

What is the reason that you want to get rid of the nan values?

The reason they come back is that are needed to fill the grid again. The dataframe is 1D but the dataarray is 2D.

What you can try is to use where:

python da = ds['z'] da = da.where(da.isnull(), drop=True) but it will only drop the values if the entire row/ column is nan.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1723010051
Powered by Datasette · Queries took 239.652ms · About: xarray-datasette