Skip to content

Commit 1357add

Browse files
authored
adds link to psi notebook (#352)
1 parent f510dc7 commit 1357add

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/user_guide/selection/DropHighPSIFeatures.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,9 @@ will be done comparing the periods up to the French revolution and after.
505505
transformer = DropHighPSIFeatures(split_col='time', cut_off=date(1789, 7, 14))
506506
transformer.fit(X)
507507
508+
**Important**: if the date variable is in pandas or NumPy datetime format, you may need
509+
to pass the cut_off value as `pd.to_datetime(1789-07-14)`.
510+
508511
The PSI values shows the *century* variables in unstable as its value is above
509512
the 0.25 threshold.
510513

@@ -847,3 +850,14 @@ and a non-shifted variable (for example *var_4*)
847850
848851
849852
.. image:: ../../images/PSI_distribution_case5.png
853+
854+
855+
More details
856+
^^^^^^^^^^^^
857+
858+
In this notebook, we show how to use :class:`DropHighPSIFeatures` on a real dataset and
859+
give more detail about the underlying base and reference sub-dataframes used to
860+
determine the PSI.
861+
862+
- `Jupyter notebook <https://nbviewer.org/github/feature-engine/feature-engine-examples/blob/main/selection/Drop-High-PSI-Features.ipynb>`_
863+

0 commit comments

Comments
 (0)