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

docs/examples.md still says MicroDataFrame.cov() and .corr() are unweighted

Aperta
#335 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@juaristi22 ci sta già lavorando.

Dal 22/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

docs/examples.md line 44 says:

MicroDataFrame.cov() and .corr() retain pandas' unweighted calculations and return plain pandas DataFrame matrices.

The first clause has been false since #330 merged (2026-09-18): both are frequency-weighted, and each cell of the matrix is the estimator applied to that pair of columns. docs/api.md already says so. A reader who checks the docs against the code finds a direct contradiction.

Fix: rewrite the paragraph to describe the weighted behaviour, keep the accurate note that the return type is a plain DataFrame, and add a two-line example whose numbers match numpy.cov(fweights=...) on the replicated sample.

Lingua principale
Python
Stelle
16
Fork
10
Merge medio
5g 3h
PR unite (30g)
21

Preparare l'ambiente

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 PolicyEngine/microdf

Tutte le issue di PolicyEngine/microdf

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.