DataType Class
Configures column data types for a dataset created in Azure Machine Learning.
DataType methods are used in the TabularDatasetFactory class
from_*
methods, which are used to create new TabularDataset objects.
- Inheritance
-
builtins.objectDataType
Constructor
DataType()
Methods
to_bool |
Configure conversion to bool. |
to_datetime |
Configure conversion to datetime. |
to_float |
Configure conversion to 64-bit float. |
to_long |
Configure conversion to 64-bit integer. |
to_stream |
Configure conversion to stream. |
to_string |
Configure conversion to string. |
to_bool
Configure conversion to bool.
static to_bool()
to_datetime
Configure conversion to datetime.
static to_datetime(formats=None)
Parameters
Name | Description |
---|---|
formats
|
Formats to try for datetime conversion. For example %d-%m-%Y for data in "day-month-year", and %Y-%m-%dT%H:%M:%S.%f for "combined date an time representation" according to ISO 8601.
Format specifiers will be inferred if not specified. Inference requires that the data source is accessible from current compute. default value: None
|
to_float
Configure conversion to 64-bit float.
static to_float(decimal_mark='.')
Parameters
Name | Description |
---|---|
decimal_mark
|
Dot "." or comma "," for different regions' standard symbol for the decimal place. Uses a dot decimal marker by default. For example, the number 1234.56 should use "." as the decimal mark and the number 1234,56 should use "," as the decimal mark. default value: .
|
to_long
Configure conversion to 64-bit integer.
static to_long()
to_stream
Configure conversion to stream.
static to_stream(workspace, escaped=False)
Parameters
Name | Description |
---|---|
workspace
Required
|
|
escaped
|
default value: False
|
to_string
Configure conversion to string.
static to_string()
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for