tiled.adapters.csv.CSVAdapter
- class tiled.adapters.csv.CSVAdapter(data_uris: Iterable[str], structure: TableStructure | None = None, *, metadata: Mapping[str, str | int | float | Mapping[str, JSON_ITEM] | Sequence[JSON_ITEM] | None] | None = None, specs: List[Spec] | None = None, **kwargs: Any | None)[source]
Adapter for tabular data stored as partitioned text (csv) files
- __init__(data_uris: Iterable[str], structure: TableStructure | None = None, *, metadata: Mapping[str, str | int | float | Mapping[str, JSON_ITEM] | Sequence[JSON_ITEM] | None] | None = None, specs: List[Spec] | None = None, **kwargs: Any | None) None[source]
Adapter for partitioned tabular data stored as a sequence of text (csv) files
- Parameters:
- data_urislist of uris to csv files
- structure
- metadata
- specs
- kwargsdict
any keyword arguments that can be passed to the pandas.read_csv function, e.g. names, sep, dtype, etc.
Methods
__class_getitem__Parameterizes a generic class.
__delattr__(name, /)Implement delattr(self, name).
__dir__(/)Default dir() implementation.
__eq__(value, /)Return self==value.
__format__(format_spec, /)Default object formatter.
__ge__(value, /)Return self>=value.
__getattribute__(name, /)Return getattr(self, name).
__getitem__(key)Get an ArrayAdapter for a single column
__getstate__(/)Helper for pickle.
__gt__(value, /)Return self>value.
__hash__(/)Return hash(self).
__init__(data_uris[, structure, metadata, specs])Adapter for partitioned tabular data stored as a sequence of text (csv) files
__init_subclass__Function to initialize subclasses.
__le__(value, /)Return self<=value.
__lt__(value, /)Return self<value.
__ne__(value, /)Return self!=value.
__new__(*args, **kwargs)__reduce__(/)Helper for pickle.
__reduce_ex__(protocol, /)Helper for pickle.
__repr__()Return repr(self).
__setattr__(name, value, /)Implement setattr(self, name, value).
__sizeof__(/)Size of object in memory, in bytes.
__str__(/)Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
append_partition(partition, data)Append data to an existing partition
from_catalog(data_source, node, /, **kwargs)from_uris(*data_uris, **kwargs)generate_data_sources(mimetype, ...)get(key)init_storage(storage, data_source, path_parts)Initialize partitioned CSV storage
items()Iterator over table columns
metadata()read([fields])read_partition(indx[, fields])Read a single partition
structure()supported_storage()write(data)Default writing function to a dataset with a single partition
write_partition(partition, data)Write data to a new partition or overwrite an existing one
Attributes
__abstractmethods____annotations____dict____doc____module____orig_bases____parameters____slots____weakref__list of weak references to the object
_abc_implspecsstructure_family