Skip to content

Commit

Permalink
Performed EDA: Handled missing values with forward fill (ffill) and c…
Browse files Browse the repository at this point in the history
…apped outliers using IQR method for stock price data.
  • Loading branch information
RB137 committed Oct 20, 2024
1 parent 85f3c5e commit 227078b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .ipynb_checkpoints/stock_market(complete)-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@
}
],
"source": [
"# Using forward fill for time-series continuity\n",
"# Using forward fill for time-series continuity in stock prediction\n",
"df['Open'] = df['Open'].ffill()\n",
"df['High'] = df['High'].ffill()\n",
"df['Low'] = df['Low'].ffill()\n",
Expand All @@ -467,7 +467,9 @@
"df['Volume'] = df['Volume'].ffill()\n",
"\n",
"# Checking for remaining NaN values\n",
"df.isnull().sum()"
"df.isnull().sum()\n",
"\n",
"\n"
]
},
{
Expand Down

0 comments on commit 227078b

Please sign in to comment.