I have a csv file from import business and i try to copy the data of this file in my google sheets. The problem is with the format of the csv file. I try several times and i have an error with NA y use NA FILTER for solve that.But the first column disappeared maybe because maybe it has a NA. That column is critical to me because it has the names of the companies. I'm lost, can you think of any help?
Azulejos = pd.read_csv('IMPORTACIONES-2021-01-01-2021-08-31--6907.23.00.000E (2).csv',sep=";",encoding="latin-1",na_filter= False)
print(Azulejos)
Importador (prob.) Cuit ... Código.1 Detalle
CERAMICA MAJA SRL 30707457003 01-2021 ...
LEMO BALTASAR BRUM 20925092852 01-2021 ...
LEMO BALTASAR BRUM 20925092852 01-2021 ...
BALCARCE 54 S.A. 30680857209 01-2021 ...
BALCARCE 54 S.A. 30680857209 01-2021 ...
... ... ... ... ... ...
BODEN CERAMICS S.R.L. 30716000385 07-2021 ...
BODEN CERAMICS S.R.L. 30716000385 07-2021 ...
BODEN CERAMICS S.R.L. 30716000385 07-2021 ...
BODEN CERAMICS S.R.L. 30716000385 07-2021 ...
BODEN CERAMICS S.R.L. 30716000385 07-2021 ...
[574 rows x 59 columns]
Photo from google sheets
[1]: https://i.stack.imgur.com/ToIB9.png
#spreadsheet
gc = gspread.service_account(filename='spreadsheet-323416-3a7c20722874.json')
sh = gc.open_by_key('1vL3R_5Fcvo7MPzXNuaGNYr4yG03ie4VCaCRhZUeQhhU')
worksheet = sh.get_worksheet(0)
worksheet.update([Azulejos.columns.values.tolist()] + Azulejos.values.tolist())