-
Notifications
You must be signed in to change notification settings - Fork 16
TypeError: bad operand type for unary ~: 'float' #3
Copy link
Copy link
Open
Description
Hi,
For pdf pages with similar layout to the Sample_FS.pdf, I get the above error. I think the code should work fine for similar layouts. So what is the issue? Can I solve the issue by some simple tweaking of the code?
Thank you
File "C:/Users/Asus/anaconda3/Lib/SLICEmyPDF-main/slicemypdf\slicemypdf.py", line 712, in _get_token_coordinates
~coordinate_table.word_text.str.match(r"^(\s+|)\$(\s+|)$")
File "C:\Users\Asus\anaconda3\lib\site-packages\pandas\core\generic.py", line 1436, in __invert__
new_data = self._mgr.apply(operator.invert)
File "C:\Users\Asus\anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 425, in apply
applied = b.apply(f, **kwargs)
File "C:\Users\Asus\anaconda3\lib\site-packages\pandas\core\internals\blocks.py", line 378, in apply
result = func(self.values, **kwargs)
TypeError: bad operand type for unary ~: 'float'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels