op-analytics icon indicating copy to clipboard operation
op-analytics copied to clipboard

fix: DataFrame mapping and datetime parsing

Open mdqst opened this issue 2 months ago • 0 comments

Description switched df.map(...) to df.applymap(...) - DataFrames don’t have map, so the old code would crash. also removed format='mixed' in pd.to_datetime(...) because Pandas doesn’t support it. dates in different formats now parse smoothly with errors='coerce'.

Tests ran the script on sample data; all transformations and datetime parsing work without errors.

Additional context this fixes crashes when processing DataFrames with mixed date formats or when trying to apply element-wise transformations using map.

Metadata

mdqst avatar Oct 14 '25 08:10 mdqst