Skip to content

Commit

Permalink
fix feature engineering notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
mail4umar committed Oct 24, 2024
1 parent 0021292 commit 18803b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/user_guide_data_preparation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Data Preparation
.. grid-item::

.. card:: Feature engineering
:link: user_guide.data_preparation.joins
:link: user_guide.data_preparation.features_engineering
:link-type: ref
:text-align: center
:class-card: custom-card-13
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ The feature 'parch' corresponds to the number of parents and children on-board.
.. ipython:: python
:suppress:
:okwarning:
titanic["family_size"] = titanic["parch"] + titanic["sibsp"] + 1
res = titanic.select(["parch", "sibsp", "family_size"])
Expand Down Expand Up @@ -72,6 +73,7 @@ Consider the following example: notice that passenger names include their title.
.. ipython:: python
:suppress:
:okwarning:
res = titanic["name"]
html_file = open("/project/data/VerticaPy/docs/figures/ug_dp_table_fe_3.html", "w")
Expand All @@ -95,6 +97,7 @@ Let's extract the title using regular expressions.
.. ipython:: python
:suppress:
:okwarning:
titanic.regexp(
column = "name",
Expand Down Expand Up @@ -155,6 +158,7 @@ For each state, let's compute the previous number of forest fires.
.. ipython:: python
:suppress:
:okwarning:
res = amazon.analytic(
name = "previous_number",
Expand Down Expand Up @@ -194,6 +198,7 @@ Let's look at forest fires for each state three months preceding two months foll
.. ipython:: python
:suppress:
:okwarning:
res = amazon.rolling(
name = "number_3mp_2mf",
Expand Down

0 comments on commit 18803b7

Please sign in to comment.