PandasDBFSDatasource
Pandas based Datasource for DataBricks File System (DBFS) based data assets.
Deprecated since version 1.16.0: DBFS is deprecated by Databricks. Use Unity Catalog volumes, external locations, or workspace files with PandasFilesystemDatasource instead.
Add a csv asset to the datasource.
Add an excel asset to the datasource.
Add a feather asset to the datasource.
Add a fwf asset to the datasource.
Add a hdf asset to the datasource.
Add a html asset to the datasource.
Add an iceberg asset to the datasource.
Add a json asset to the datasource.
Add an orc asset to the datasource.
Add a parquet asset to the datasource.
Add a pickle asset to the datasource.
Add a sas asset to the datasource.
Add a spss asset to the datasource.
Add a stata asset to the datasource.
Add a xml asset to the datasource.
Removes the DataAsset referred to by asset_name from internal list of available DataAsset objects.
Parameters
Name Description name
name of DataAsset to be deleted.
Returns the DataAsset referred to by asset_name
Parameters
Name Description name
name of DataAsset sought.
Returns
Type Description great_expectations.datasource.fluent.interfaces._DataAssetT
if named "DataAsset" object exists; otherwise, exception is raised.
class great_expectations.datasource.fluent.PandasDBFSDatasource(
*,
type: Literal['pandas_dbfs'] = 'pandas_dbfs',
name: str,
id: Optional[uuid.UUID] = None,
assets: List[great_expectations.datasource.fluent.data_asset.path.file_asset.FileDataAsset] = [],
base_directory: pathlib.Path,
data_context_root_directory: Optional[pathlib.Path] = None
)
Methods
add_csv_asset
add_csv_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f575223aea0> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f575223af60> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f575223af90> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f575223b350> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f575223b4d0> = None,
sep: typing.Optional[str] = None,
delimiter: typing.Optional[str] = None,
header: Union[int,
Sequence[int],
None,
Literal['infer']] = 'infer',
names: Union[Sequence[str],
None] = None,
index_col: Union[Literal[False],
IndexLabel,
None] = None,
usecols: typing.Optional[typing.Union[int,
str,
typing.Sequence[int]]] = None,
dtype: typing.Optional[dict] = None,
engine: Union[CSVEngine,
None] = None,
true_values: typing.Optional[typing.List] = None,
false_values: typing.Optional[typing.List] = None,
skipinitialspace: bool = False,
skiprows: typing.Optional[typing.Union[typing.Sequence[int],
int]] = None,
skipfooter: int = 0,
nrows: typing.Optional[int] = None,
na_values: Union[str,
Iterable[str],
None] = None,
keep_default_na: bool = True,
na_filter: bool = True,
skip_blank_lines: bool = True,
parse_dates: Union[bool,
Sequence[str],
None] = None,
date_format: typing.Optional[str] = None,
dayfirst: bool = False,
cache_dates: bool = True,
iterator: bool = False,
chunksize: typing.Optional[int] = None,
compression: CompressionOptions = 'infer',
thousands: typing.Optional[str] = None,
decimal: str = '.',
lineterminator: typing.Optional[str] = None,
quotechar: str = '"',
quoting: int = 0,
doublequote: bool = True,
escapechar: typing.Optional[str] = None,
comment: typing.Optional[str] = None,
encoding: typing.Optional[str] = None,
encoding_errors: typing.Optional[str] = 'strict',
dialect: typing.Optional[str] = None,
on_bad_lines: str = 'error',
low_memory: bool = True,
memory_map: bool = False,
storage_options: Union[StorageOptions,
None] = None,
dtype_backend: DtypeBackend = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_excel_asset
add_excel_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f575227de20> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f575227e630> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f575227cc50> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f575227fad0> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f575227f800> = None,
sheet_name: typing.Optional[typing.Union[str,
int,
typing.List[typing.Union[int,
str]]]] = 0,
header: Union[int,
Sequence[int],
None] = 0,
index_col: Union[int,
str,
Sequence[int],
None] = None,
usecols: typing.Optional[typing.Union[int,
str,
typing.Sequence[int]]] = None,
dtype: typing.Optional[dict] = None,
true_values: Union[Iterable[str],
None] = None,
false_values: Union[Iterable[str],
None] = None,
skiprows: typing.Optional[typing.Union[typing.Sequence[int],
int]] = None,
nrows: typing.Optional[int] = None,
na_values: typing.Any = None,
keep_default_na: bool = True,
na_filter: bool = True,
verbose: bool = False,
parse_dates: typing.Union[bool,
typing.List,
typing.Dict] = False,
date_format: typing.Optional[str] = None,
thousands: typing.Optional[str] = None,
decimal: str = '.',
comment: typing.Optional[str] = None,
skipfooter: int = 0,
storage_options: Union[StorageOptions,
None] = None,
dtype_backend: DtypeBackend = None,
engine_kwargs: typing.Optional[typing.Dict] = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_feather_asset
add_feather_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f57522866c0> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f5752285010> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f5752287290> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f57522871d0> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f57522873b0> = None,
columns: Union[Sequence[str],
None] = None,
use_threads: bool = True,
storage_options: Union[StorageOptions,
None] = None,
dtype_backend: DtypeBackend = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_fwf_asset
add_fwf_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f57522c9580> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f57522c8140> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f57522c8260> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f57522c85f0> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f57522c9a60> = None,
colspecs: Union[Sequence[Tuple[int,
int]],
str,
None] = 'infer',
widths: Union[Sequence[int],
None] = None,
infer_nrows: int = 100,
iterator: bool = False,
chunksize: typing.Optional[int] = None,
kwargs: typing.Optional[dict] = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_hdf_asset
add_hdf_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f57522ca8d0> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f57522ca8a0> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f57522caae0> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f57522cad20> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f57522cacc0> = None,
key: typing.Any = None,
mode: str = 'r',
errors: str = 'strict',
where: typing.Optional[typing.Union[str,
typing.List]] = None,
start: typing.Optional[int] = None,
stop: typing.Optional[int] = None,
columns: typing.Optional[typing.List[str]] = None,
iterator: bool = False,
chunksize: typing.Optional[int] = None,
kwargs: typing.Optional[dict] = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_html_asset
add_html_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f57522cb5c0> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f57522caed0> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f57522fa240> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f57522f0260> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f57522f03e0> = None,
match: Union[str,
Pattern] = '.+',
header: Union[int,
Sequence[int],
None] = None,
index_col: Union[int,
Sequence[int],
None] = None,
skiprows: typing.Optional[typing.Union[typing.Sequence[int],
int]] = None,
attrs: typing.Optional[typing.Dict[str,
str]] = None,
parse_dates: bool = False,
thousands: typing.Optional[str] = ',
',
encoding: typing.Optional[str] = None,
decimal: str = '.',
converters: typing.Optional[typing.Dict] = None,
na_values: Union[Iterable[object],
None] = None,
keep_default_na: bool = True,
displayed_only: bool = True,
dtype_backend: DtypeBackend = None,
storage_options: StorageOptions = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_iceberg_asset
add_iceberg_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f57522f1a30> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f57522f1fa0> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f57522f1ac0> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f57522f2180> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f57522f2450> = None,
catalog_name: str | None = None,
catalog_properties: dict[str,
typing.Any] | None = None,
columns: list[str] | None = None,
row_filter: str | None = None,
case_sensitive: bool = True,
snapshot_id: int | None = None,
limit: int | None = None,
scan_properties: dict[str,
typing.Any] | None = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_json_asset
add_json_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f5751d7e540> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f5751d7e930> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f5751d7ecc0> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f57522f4dd0> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f57522f4410> = None,
orient: typing.Optional[str] = None,
typ: Literal['frame',
'series'] = 'frame',
dtype: typing.Optional[dict] = None,
convert_axes: typing.Optional[bool] = None,
convert_dates: typing.Union[bool,
typing.List[str]] = True,
keep_default_dates: bool = True,
precise_float: bool = False,
date_unit: typing.Optional[str] = None,
encoding: typing.Optional[str] = None,
encoding_errors: typing.Optional[str] = 'strict',
lines: bool = False,
chunksize: typing.Optional[int] = None,
compression: CompressionOptions = 'infer',
nrows: typing.Optional[int] = None,
storage_options: Union[StorageOptions,
None] = None,
dtype_backend: DtypeBackend = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_orc_asset
add_orc_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f5751d78620> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f5751d78830> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f5751d78d40> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f5751d78dd0> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f5751d78e90> = None,
columns: typing.Optional[typing.List[str]] = None,
dtype_backend: DtypeBackend = None,
kwargs: typing.Optional[dict] = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_parquet_asset
add_parquet_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f5751d7a9f0> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f5751d7ade0> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f5751d7b5c0> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f5751d7b770> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f5751d3b470> = None,
engine: str = 'auto',
columns: typing.Optional[typing.List[str]] = None,
storage_options: Union[StorageOptions,
None] = None,
dtype_backend: DtypeBackend = None,
to_pandas_kwargs: typing.Optional[typing.Dict] = None,
kwargs: typing.Optional[dict] = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_pickle_asset
add_pickle_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f5751b54aa0> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f5751b55130> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f5751b55f70> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f5751b56780> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f5751b56900> = None,
compression: CompressionOptions = 'infer',
storage_options: Union[StorageOptions,
None] = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_sas_asset
add_sas_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f5751c56360> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f5751c55fa0> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f5751c558e0> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f5751c54f50> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f5751c54e90> = None,
format: typing.Optional[str] = None,
index: typing.Optional[str] = None,
encoding: typing.Optional[str] = None,
chunksize: typing.Optional[int] = None,
iterator: bool = False,
compression: CompressionOptions = 'infer',
**extra_data: typing.Any
) → pydantic.BaseModel
add_spss_asset
add_spss_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f5751dc7b60> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f5751dc6d20> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f5751dc6870> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f5751dc7b90> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f5751dc6ae0> = None,
usecols: typing.Optional[typing.Union[int,
str,
typing.Sequence[int]]] = None,
convert_categoricals: bool = True,
dtype_backend: DtypeBackend = None,
kwargs: typing.Optional[dict] = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_stata_asset
add_stata_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f5751a60bf0> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f5751a60cb0> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f5751a60e00> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f5751a60fb0> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f5751a61070> = None,
convert_dates: bool = True,
convert_categoricals: bool = True,
index_col: typing.Optional[str] = None,
convert_missing: bool = False,
preserve_dtypes: bool = True,
columns: Union[Sequence[str],
None] = None,
order_categoricals: bool = True,
chunksize: typing.Optional[int] = None,
iterator: bool = False,
compression: CompressionOptions = 'infer',
storage_options: Union[StorageOptions,
None] = None,
**extra_data: typing.Any
) → pydantic.BaseModel
add_xml_asset
add_xml_asset(
name: str,
*,
id: <pydantic.v1.fields.DeferredType object at 0x7f5751a619a0> = None,
order_by: <pydantic.v1.fields.DeferredType object at 0x7f5751a61a60> = None,
batch_metadata: <pydantic.v1.fields.DeferredType object at 0x7f5751a61bb0> = None,
batch_definitions: <pydantic.v1.fields.DeferredType object at 0x7f5751a61d60> = None,
connect_options: <pydantic.v1.fields.DeferredType object at 0x7f5751a61e20> = None,
xpath: str = './*',
namespaces: typing.Optional[typing.Dict[str,
str]] = None,
elems_only: bool = False,
attrs_only: bool = False,
names: Union[Sequence[str],
None] = None,
dtype: typing.Optional[dict] = None,
encoding: typing.Optional[str] = 'utf-8',
stylesheet: Union[FilePath,
None] = None,
iterparse: typing.Optional[typing.Dict[str,
typing.List[str]]] = None,
compression: CompressionOptions = 'infer',
storage_options: Union[StorageOptions,
None] = None,
dtype_backend: DtypeBackend = None,
**extra_data: typing.Any
) → pydantic.BaseModel
delete_asset
delete_asset(
name: str
) → None
get_asset
get_asset(
name: str
) → great_expectations.datasource.fluent.interfaces._DataAssetT