You should be working with virtual environments so no package installations interfere with your system. some common ones for python are :
- pipenv ... also pipenv
- conda: which comes with a much larger distribution called Anaconda with lots of scientific/ data science python libs.
- virtualenv / pipenv
with virtual environment managers like pipenv, updating pyqt is as simple as just typing :
pipenv update pyqt or pipenv update pyside2
I'm not familiar with mint so I can't really say much about that. But it looks like your PyQt version 5.10 doesn't have sibling methods etc. I am using pyside2 with conda since I work with math stuff a lot, I would suggest you to look into pipenv for environment management since anaconda seems unnecessary. I would suggest to install pyqt or pyside2 in a virtual environment along with all the rest of your packages for this project with pipenv. If that seems too much of a hassle then try to work with virtual environments for future projects and for now you can just cast it as a string first manually:
col3 = str(surpassed_column_data).strip("%") col3 = float(col3)