Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support query

Aperta
#202 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
pandas, python
Ambito
data

Direzione di ricerca

Start with the cf.where and cf.weighted entry points and the linked pandas DataFrame.query behavior. Define how string expressions and named masks should work for xarray objects, then verify that examples such as ds.cf.where('longitude > 0') and ds.cf.where('sea_binary_mask') behave as requested.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

This is kind of inspired by the way we handle weights.
The weights must be DataArrays for xarray, but cf_xarray allows strings so we can do cf.weighted('volume').

How about introducing boolean expressions in cf.where similarly to pandas query?
That would allow to do ds.cf.where('longitude > 0') or ds.cf.where('sea_binary_mask').

Lingua principale
Python
Stelle
181
Fork
49
Merge medio
43m
PR unite (30g)
1

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di xarray-contrib/cf-xarray

Tutte le issue di xarray-contrib/cf-xarray

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.