You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MicroDataFrame.cov() and .corr() ignore weights #327
MicroDataFrame.cov() and MicroDataFrame.corr() return plain pandas results. The overrides at microdf/microdataframe.py:78 and :84 call pd.DataFrame(self, copy=False).cov(*args, **kwargs) / .corr(...) and use __finalize__ only to keep weights off the column-by-column result. MicroSeries.cov and MicroSeries.corr are frequency-weighted, so the same pair of columns gives a different answer depending on the entry point.
Expected.MicroDataFrame.cov() and .corr() return the pairwise frequency-weighted matrix, consistent with MicroSeries.cov / .corr and with the package convention that weights are frequency counts (sum(w) - ddof in the denominator), so integer weights agree with pandas on the replicated sample.
Context. Surfaced while reviewing #324, where the API reference described these two methods as frequency-weighted. The docs are being corrected there; this issue is the code side. Whichever way it goes, the reference rows for these two methods should state which behaviour they have.
Activity
Correct three wrong descriptions on the API page
Add an API reference to the documentation (#324)