Question: I am trying to run this code I found here: https://github.com/keisukeirie/quickdraw_prediction_model I am getting an error below. I don't even really know what the line
I am trying to run this code I found here:
https://github.com/keisukeirie/quickdraw_prediction_model
I am getting an error below. I don't even really know what the line of code below is doing and how it is indexing the dataframe. When I change the 2 to a 1 (arbitrary) I don't get an error here, but it screws up the code elsewhere.

Here is the code in context:

Here is a screenshot of the variable explorer (df_cf)

IPython console Console 1/A 3 File "feature_engineering_func.py", line 42, in feature_engineering_ensemble df_test1- feature_eng_pt1(df) File "feature_engineering_func.py",line 147, in feature_eng_pt1 df-cf('final-time'] = [dfcf.loc[index,'drawing'][df-cf.stroke-number(index)-1] [2] IndexError: list index out of range In [2]: In [21 (-1) for inden in ifl.inder draudng'1fef.cf.stroke.nubertindexj-la] IPython console Console 1/A 3 File "feature_engineering_func.py", line 42, in feature_engineering_ensemble df_test1- feature_eng_pt1(df) File "feature_engineering_func.py",line 147, in feature_eng_pt1 df-cf('final-time'] = [dfcf.loc[index,'drawing'][df-cf.stroke-number(index)-1] [2] IndexError: list index out of range In [2]: In [21 (-1) for inden in ifl.inder draudng'1fef.cf.stroke.nubertindexj-la]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
