I would like to calculate the diffence between de dates in a column that I´m using as a dataframe and I´m trying to create a KPI that shows the biggest difference between dates in that column.
I´m trying this:
maior_diferenca = data['DATA ACIDENTE'].diff().max()
It´s ahowing the following error:
File "C:Usersjorge.queirozDesktopJORGEProjetosPainel CIPAtest.py", line 75, in main
maior_diferenca = data['DATA ACIDENTE'].diff().max()
New contributor
jorge queiroz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1