home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1475049548

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/pull/7206#issuecomment-1475049548 https://api.github.com/repos/pydata/xarray/issues/7206 1475049548 IC_kwDOAMm_X85X63hM 14371165 2023-03-19T00:39:00Z 2023-03-19T00:39:00Z MEMBER

Hmm, did I mess something up? I believe I only changed typing related things.

_bins suffix seems to have disappeared: ``` def test_groupby_bins_multidim(self): array = self.make_groupby_multidim_example_array() bins = [0, 15, 20] bin_coords = pd.cut(array["lat"].values.flat, bins).categories expected = DataArray([16, 40], dims="lat_bins", coords={"lat_bins": bin_coords}) actual = array.groupby_bins("lat", bins).map(lambda x: x.sum())

  assert_identical(expected, actual)

E AssertionError: Left and right DataArray objects are not identical E Differing dimensions: E (lat_bins: 2) != (lat: 2) E Coordinates only on the left object: E * lat_bins (lat_bins) object (0, 15] (15, 20] E Coordinates only on the right object: E * lat (lat) object (0, 15] (15, 20] ```

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