Result Extraction#

The to_df function converts any estimator result object into a polars DataFrame. It auto-detects the result type, so there is one function to remember regardless of which estimator produced the result.

to_df

Convert any ModernDiD result object to a polars DataFrame.

Individual Converters#

The named converters are the underlying implementations that to_df dispatches to. They are available for direct use when you need explicit control over the conversion.

aggteresult_to_polars

Convert AGGTEResult to polars DataFrame for plotting.

mpresult_to_polars

Convert MPResult to polars DataFrame for plotting.

dddaggresult_to_polars

Convert DDDAggResult to polars DataFrame for plotting.

dddmpresult_to_polars

Convert DDDMultiPeriodResult or DDDMultiPeriodRCResult to polars DataFrame for plotting.

doseresult_to_polars

Convert DoseResult to polars DataFrame for plotting.

pteresult_to_polars

Convert PTEResult event study to polars DataFrame for plotting.

honestdid_to_polars

Convert HonestDiDResult to polars DataFrame for plotting.

didinterresult_to_polars

Convert DIDInterResult to polars DataFrame for plotting.