Avatar ·

What does Tilda mean in Pandas?

📁 python

What does Tilda mean in this case?

  df.loc [~ non_numberic_profits]     

in the Stolbets non_numberic_profits Lines were set that do not meet the type of data float . That is, not numbers, but some letters or symbols.

What does Tilda mean in this case? What function does it perform?

after this time, the following line of code

  df.profit = " df.profit.apply (pd.to_numeric)     

as I understand it, it transforms it precisely into the data type float . But what does she transform? The remaining values? I do not quite understand what the operator Tilda performs in this case.