home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 2083501344

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
2083501344 I_kwDOAMm_X858L7Ug 8612 more frequency string updates? 10194086 closed 0     5 2024-01-16T09:56:48Z 2024-02-15T16:53:37Z 2024-02-15T16:53:37Z MEMBER      

What is your issue?

I looked a bit into the frequency string update & found 3 issues we could improve upon.

  1. Apart from "M", pandas also deprecated "Y", and "Q", in favor of "YE" and "QE". (And they are discussing renaming "MS" to "MB"). Should we do the same?

  2. Should we translate the new freq strings to the old ones if pandas < 2.2 is installed? Otherwise we get the following situation: python import xarray as xr xr.date_range("1600-02-01", periods=3, freq="M") # deprecation warning xr.date_range("1600-02-01", periods=3, freq="ME") # ValueError: Invalid frequency: ME

  3. date_range_like can emit deprecation warnings without a way to mitigate them if pandas < 2.2 is installed. (When a DatetimeIndex) is passed. Could be nice to translate the old freq string to the new one without a warning.

I have played around with 2. and 3. and can open a PR if you are on board.

@spencerkclark @aulemahal

  • pandas-dev/pandas#55792
  • pandas-dev/pandas#55553
  • pandas-dev/pandas#56840
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/8612/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 4 rows from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 84.028ms · About: xarray-datasette