DATACONTAINER_TYPE
Return a TextBlob containing the input DataContainer type (e.g. Vector). Must use the TEXT_VIEW block to view the text. Params: default : DataContainer The input DataContainer to check the type. Returns: out : DataContainer TextBlob: Input DataContainer type
Python Code
from flojoy import DataContainer, TextBlob, flojoy
@flojoy()
def DATACONTAINER_TYPE(
default: DataContainer,
) -> TextBlob:
"""Return a TextBlob containing the input DataContainer type (e.g. Vector).
Must use the TEXT_VIEW block to view the text.
Parameters
----------
default : DataContainer
The input DataContainer to check the type.
Returns
-------
DataContainer
TextBlob: Input DataContainer type
"""
return TextBlob(text_blob=default.type)
Example
Having problems with this example app? Join our Discord community and we will help you out!