That will find you the row
In which bloody line do you get that message? Asking Python question 101 - if you have exception, show full traceback - or at least the part that contains reference to your code. In output tags, of course.
df[abs(df['X'] - 4.125) <= 1e-6]Result
Output: Ion N Mass Charge X Y Z Azm Elv KE
5 3849096 0.000549 -1 4.125 44.9887 -2.47517 -176.363 25.715 17711.1
(Jun-29-2018, 01:57 PM)Ariane Wrote: What do you mean "does not work"?
I get the following error:
TypeError: 'Series' objects are mutable, thus they cannot be hashed
In which bloody line do you get that message? Asking Python question 101 - if you have exception, show full traceback - or at least the part that contains reference to your code. In output tags, of course.
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.