0
Hello, everyone, good evening! I’m new to the community and need help to solve a code.
I have a spreadsheet in Excel with several products and their respective tax rates. Only!
Therefore, I need to return products that do not have aliquot or that have incorrect aliquot. Example: For the perfume product the correct rate is 18%, if the spreadsheet has != constando type 16% this product should be the output of my program and its incorrect rate.
On this basis of Excel I have 50,000 lines with registered products, I need to find a more automatic and quick way to execute this type of validation that can read line by line, returning only what is invalid.
I’m starting to learn Python now (total beginner) so I’d like the help to come in this language.
Import pandas as pd
#importando a planilha para um panda Datafreme
df = pd.read_excel('plan1.xls',sheet_name='Sheet1')
#Selecionando os produto em um set
CategoriaProdutos = set(list(df['CategoriaProduto']))
I could only write so far!
Since the same validation statement should be executed several times in a row for the xlsx file products, I understand that I will need a repeat loop for
or while
that can execute the same code block to return the desired condition.
'
Thank you for the reply!
– Luciana Camolese
I am from Piracicaba and I need a mentor for my second project if that is the case, I am even willing to pay to have knowledge and develop in practice faster. Because I’m trying to develop a program but I have no experience.
– Luciana Camolese
If you have more questions you can ask for help from Telegram groups also https://t. me/pythonbr there has many developers, beginners and curious who can help you in relation to python. If you want to send me questions and I am online you can call me https://t. me/Wellingtoncesarfonseca
– Wellington Fonseca