Open olikra opened 1 week ago
Attention: Patch coverage is 98.50746%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 97.53%. Comparing base (
8cfab26
) to head (63f26c9
).
Files | Patch % | Lines |
---|---|---|
feature_engine/creation/math_features.py | 98.41% | 0 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I migrated the transform method in math_features from pandas.agg to native numpy functions with backward compatibility. At least all existing tests on math-feature pass.
Following key-functions are implemented:
In case a defined function is not in above collection it falls back to pandas.agg. In the Examples-section I described the way to call a custom function with numpy.apply_over_axes()
I additionally changed the deprecated
dob_datrange = pd.date_range("2020-02-24", periods=4, freq="T")
to
dob_datrange = pd.date_range("2020-02-24", periods=4, freq="min")
to avoid FutureWarnings from pandas.
Please have a look. @solegalli