home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1193853083

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/6823#issuecomment-1193853083 https://api.github.com/repos/pydata/xarray/issues/6823 1193853083 IC_kwDOAMm_X85HKMCb 14371165 2022-07-25T10:15:16Z 2022-07-25T10:15:16Z MEMBER

Hmm, I'm not a fan that f-strings by default uses the backend array only:

```python import pandas as pd import xarray as xr

s = pd.Series( range(4), index=pd.MultiIndex.from_product([list("ab"), list("cd")]), )

da = xr.DataArray.from_series(s, sparse=True)

Uses format:

print(f"Error: {da} is sparse") Error: <COO: shape=(2, 2), dtype=float64, nnz=4, fill_value=nan> is sparse ```

Should it by default just use the repr instead? But it won't feel very consistent once string formatting are used though.

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