Excel2table
Excel2Table
Bases: ExcelParseBase
Source code in Docs2KG/parser/excel/excel2table.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
__init__(*args, **kwargs)
Initialize the Excel2Table class.
Source code in Docs2KG/parser/excel/excel2table.py
10 11 12 13 14 15 16 |
|
find_table_start(df, min_non_nan=3)
staticmethod
Identify the most likely starting row of a table in a DataFrame.
Parameters: df (pd.DataFrame): The DataFrame to inspect. min_non_nan (int): Minimum number of non-NaN values in a row to consider it as the start.
Returns: int: Index of the row most likely to be the start of the table.
Source code in Docs2KG/parser/excel/excel2table.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|