Creating datasets in Strategy with Python requires the create_dataset () function from the mstrio Python package. This function has 3 required parameters and 1 optional parameters.
Required:
- Dataframe - this is a Pandas dataframe object from which an in-memory
- Dataset Name - this is a string object that will create the name of the dataset
- Table Name - this is a string object that will create the name of the table
Optional:
- To Metric - a vector of column names from the dataframe that will be formatted as metrics in the created dataset. By default, numeric types are formatted as metrics while character and date types are formatted as attributes.
- To Attribute - the logical opposite of to_metric
KB442243