pydata / pydata/xarray

REF: Implement CFTimeIndex via pandas ExtensionArray

Open
#6,129 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement topic-cftime topic-indexing
Dominant language
Python
Stars
4.2k
Forks
1.4k
Avg merge
2d 15h
Merged PRs (30d)
14

Description

With pandas#43930 merged, arbitrary ExtensionArrays will be stored directly in a pd.Index, (hopefully) obviating the need for an Index subclass.

The suggestion here is to implement a CFTimeExtensionArray, and once minimum-supported-versions catch up, deprecate CFTimeIndex.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing CFTimeIndex implementation and pandas#43930 to understand the ExtensionArray storage model. Determine the required CFTimeExtensionArray behavior and the minimum-supported-version constraint; done means the extension array is implemented and CFTimeIndex can be deprecated when those versions permit it.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.