I am trying to read an excel file, convert it into csv and load its head:
df = pd.read_excel("final.xlsx", sheet_name="NewCustomerList")
# df = df.to_csv()
print(df.head(3))
Without converting to csv, the results look like this:
  Note: The data and information in this document is reflective of a hypothetical situation and client.  \
0                                         first_name                                                                                                                              
1                                            Chickie                                                                                                                              
2                                              Morly     
However, if I uncomment the conversion, I get an error that:
'str' object has no attribute 'head'
I am guessing its because of the first line of the data. How else can I convert this properly and read it?
 
    