LuizHduarte / Drought

0 stars 1 forks source link

(getSpeiValues + getMonthValues) → readXlsx #7

Closed A-Infor closed 7 months ago

A-Infor commented 7 months ago

Merging two functions that did almost the same thing.

Why have two functions to open and read the xlsx file? The file can be opened and read just once.

A-Infor commented 7 months ago

It is giving the error TypeError: string indices must be integers, not 'str' when called by showSpeiData but I still don't understand why.

How is the use by showSpeiData different from the use by splitSpeiData?

LuizHduarte commented 7 months ago

the readXlsx function was receiving a dataframe as a parameter and not the path to the .xslx file, causing a conflict