I am trying to reference a Pandas dataframe in Pysimplegui
`
# function definitions
def retrieve_info():
if values['-UPC-'] == '':
search_box = values['-UPC-']
records = item_info.iloc[item_info[0] == search_box]
for records in records:
window['-SKU-'].update(records[item_info['Item Number']])
window['-DESCRIPTION-'].update(records[item_info['Item Description']])
window['-UOM-'].update(records[item_info['UOM']])
window['-LOCATION-'].update(records[item_info['LOCATION']])
`
trying to get the fields below Scan Product to populate with information but instead get this error. KeyError: 'UPC'



search_boxwill be an empty string. Search where the string'UPC'in your script and find what's the correct key.