Skip to content

Commit 7ddbbe9

Browse files
committed
updating
1 parent e9ed2c2 commit 7ddbbe9

File tree

3 files changed

+1584
-1
lines changed

3 files changed

+1584
-1
lines changed

Finance_Stock_Crypto_Trading/Crypto_with_MachineLearning/Feature Engineering for Bitcoin Time Series and Price Prediction with XGBoost/preprocess.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def impute_missing_data(btc_df: pd.DataFrame) -> pd.DataFrame:
151151
152152
## In above method why the 60 is added with btc_df.index[-1]
153153
154-
155154
The reason why 60 is added to btc_df.index[-1] is because the reindex method is being used to create a new index for the dataframe with a minute-by-minute frequency.
156155
157156
In the range function, the start parameter is set to btc_df.index[0], which is the first timestamp in the original index. The end parameter is set to btc_df.index[-1]+60, which is the last timestamp in the original index plus 60 seconds. This creates a new index that starts from the first timestamp in the original index and ends at the last timestamp plus 60 seconds, with a step of 1 minute (i.e., 60 seconds).

0 commit comments

Comments
 (0)