Data

Contains factory class reading various kinds of data.

class dataprofiler.data_readers.data.Data(input_file_path: Optional[Union[str, _io.BytesIO]] = None, data: Optional[Any] = None, data_type: Optional[str] = None, options: Optional[Dict] = None)

Bases: object

Factory class for reading various kinds of data.

Create Factory Data object.

Auto-detection of data type if not specified for input files. Returns the proper data class or specified data class for the given data or input file.

Parameters
  • input_file_path

  • data

  • data_type

  • options

Returns

data_classes: List[Dict] = [{'data_class': <class 'dataprofiler.data_readers.json_data.JSONData'>, 'kwargs': {}}, {'data_class': <class 'dataprofiler.data_readers.graph_data.GraphData'>, 'kwargs': {}}, {'data_class': <class 'dataprofiler.data_readers.csv_data.CSVData'>, 'kwargs': {}}, {'data_class': <class 'dataprofiler.data_readers.parquet_data.ParquetData'>, 'kwargs': {}}, {'data_class': <class 'dataprofiler.data_readers.avro_data.AVROData'>, 'kwargs': {}}, {'data_class': <class 'dataprofiler.data_readers.text_data.TextData'>, 'kwargs': {}}]