convert dataframe row to dict
Use df.to_dict(orient='index')
to have index value as keys for easy retrieval of data
Try adding .to_dict('records')[0]
to the row you want
catStr_df[catStr_df['Item Number']==34881].to_dict('records')[0]
Use df.to_dict(orient='index')
to have index value as keys for easy retrieval of data
Try adding .to_dict('records')[0]
to the row you want
catStr_df[catStr_df['Item Number']==34881].to_dict('records')[0]