Parse pandas DataFrames into schema-compliant data using column-to-field mapping
DataFrameParser
class specializes in parsing pandas DataFrames into schema-compliant data structures. It extends the base DataParser
functionality to handle tabular data with column-based mapping.
SchemaField
to column name pairs.InvalidInputException
if the schema
parameter is of an invalid type.list[ParsedSchema]
- A list of ParsedSchema objects, one for each row in the DataFrame.
DataFrameParser
inherits from the base DataParser
class and implements its abstract methods specifically for pandas DataFrame handling.
Inheritance Chain: DataFrameParser
→ DataParser
→ ABC
+ Generic