Transform line of python code

How would I change this into a Python script?
This code takes information from Excel and does the calculation.

Screenshot_22

In the dynamo. initially I imported excel and separated the columns to later play on PYTHON SCRIPT

In python script I adapted to this format, but it didn’t work

on Jupyter notebook it worked

esta é a tabela:
TEST TABLE R2.xlsx (10.3 KB)
TESTE TABLE R2.dyn (22.9 KB)

I think you try tot calculat with strings.

@ronnalysonloiola have you tried changing number format, for example from 0,05 → 0.05. And remember you are using IronPython in Dynamo so some functions that you use in Jupyter won’t work as .sum(). You are probably using attributes from Pandas library. Try amending your numbering format and amend your code so you are not using external libraries!

1 Like

Vou marcar o @T_Pover , talvez ele possa ajudar.