I have a simple project that I have created using the information that I collected from an excel sheet file (xlsx file).
this is the information I am working with
when I run df.iloc[1]
the output is
but when I run df.loc['Amazon']
I get a KeyError for the keyword I am looking for
I have looked into the documentation in pandas and noticed the same syntax as I used in the code below. I am not sure if there has to be other requirements for me to run this particular code.
Am I required to use a specific type of file for this to function properly or am missing a simple syntax in my code?