I try to extract table in pdf file in pymupdf with the following code for table in tables: df = table.to_pandas() print (df) The result looks like this Col0 | Col1 | Col2 ------------------------------------------------------ function | % Time Spend | % Time Spend % Time Spend | 1.5% 0.5 | 5% 0.4 0.6% 0.1 How do I extract it correctly like this: Col0 | Col1 | Col2 | Col3 | Col4 | Col5 | Col6 ----------------------------------------------------------- function | % Time | Spend | % Time | Spend | % Time | Spend | 1.5% | 0.5 | 5% | 0.4 | 0.6% |b0.1 Continue reading...