flytekit.types.structured.StructuredDataset

class flytekit.types.structured.StructuredDataset(dataframe=None, uri=None, metadata=None, **kwargs)[source]

This is the user facing StructuredDataset class. Please don’t confuse it with the literals.StructuredDataset class (that is just a model, a Python class representation of the protobuf).

Methods

Parameters:
all()[source]
Return type:

DF

classmethod column_names()[source]
Return type:

List[str]

classmethod columns()[source]
Return type:

Dict[str, Type]

classmethod from_dict(d, *, dialect=None)
classmethod from_json(data, decoder=<function loads>, **from_dict_kwargs)
Parameters:
Return type:

T

iter()[source]
Return type:

Generator[DF, None, None]

open(dataframe_type)[source]
Parameters:

dataframe_type (Type[DF])

to_dict()
to_json(encoder=<function dumps>, **to_dict_kwargs)
Parameters:
Return type:

str | bytes | bytearray

Attributes

dataframe
file_format: str | None = ''
literal
metadata
uri: str | None = None