How to deal with infinite values?

Hi all,

I was trying to substitute infinite values of a certain column using the expression reported by @AlexanderFillbrunn in this thread.

Unfortunately it seems that in my case the expression doesn’t work because the Math Formula node gives me the following error:

Is there something I misunderstood? Do you have any suggestions?

Thanks in advance

Gio