datawork.instances.data¶
Instances of Data for common data payloads.
-
class
datawork.instances.data.
FileData
(desc=None, name=None)[source]¶ Base class for any disk-native data.
For example, SQLiteData will use this as a base class.
-
class
datawork.instances.data.
JSONData
(desc=None, name=None)[source]¶ A Data class for primitive JSON serializable types.
- The so-called “primitive types” in JSON are:
- string
- numeric types
- object (in python this is a
dict
) - array
- boolean
- null
- In this class, hierarchies of the following types are supported:
Note that although other types than these may be serializable in Python (by subclassing
json.JSONEncoder
), the primitive types can be serialized/deserialized unambiguously. For example, we do not support tuples, although thejson
module supports serializing them by casting them to lists.
-
class
datawork.instances.data.
KerasModelData
(desc=None, name=None)[source]¶ A Data class for Keras models.
-
class
datawork.instances.data.
PandasData
(*args, **kwargs)[source]¶ Data type for Pandas DataFrames and Series.