Try to search your question here, if you can't find : Ask Any Question Now ?

Weird error in while running a python code?

HomeCategory: stackoverflowWeird error in while running a python code?
Avatarcraig asked 5 months ago

I am running the below code, but python is giving some weird error which it was not giving before:

for i in range(len(df)):
    if df['event_name'][i] == 'product_search':
        a=i
    try:
        if df['event_desc'][i]['firebase_screen_id']==df['event_desc'][a]['firebase_screen_id'] and df['event_name'][i] in ['add_basket_click','product_detail_click','remove_basket_click','Add_Basket_Error'] and df['search_process'][i-1]==1:
            df.at[i,'search_process']=1
    except:
        pass

PFA the error image:
enter image description here

1 Answers
Best Answer
AvatarJyoti answered 5 months ago
Your Answer

8 + 8 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com