Fix warnings in test session and parser
This commit addresses two warnings that appear during the test session:
-
A
FutureWarningincamelot/parsers/hybrid.pyrelated to the downcasting behavior ofpandas.DataFrame.replace. The code has been refactored to avoid the use ofreplacewithnp.nanand instead uses a more direct method to remove empty rows and columns. -
A
CryptographyDeprecationWarningoriginating from thepypdfdependency. This warning is suppressed by setting thePYTHONWARNINGSenvironment variable in thenoxfile.pyfor the test session. This approach is used because filtering the warning viapytest.iniis not feasible due to the way the warning is raised.
Fixes #612
(Sorry for the messy grouping of issues. I am testing / fighting the :robot: Whats matter most is that we are still progressing again in this repo.)