mostlyai 0.3.10__tar.gz → 0.3.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mostlyai-0.3.10 → mostlyai-0.3.11}/PKG-INFO +1 -1
- {mostlyai-0.3.10 → mostlyai-0.3.11}/mostlyai/__init__.py +1 -1
- {mostlyai-0.3.10 → mostlyai-0.3.11}/mostlyai/generators.py +8 -0
- {mostlyai-0.3.10 → mostlyai-0.3.11}/pyproject.toml +1 -1
- {mostlyai-0.3.10 → mostlyai-0.3.11}/LICENSE +0 -0
- {mostlyai-0.3.10 → mostlyai-0.3.11}/README.md +0 -0
- {mostlyai-0.3.10 → mostlyai-0.3.11}/mostlyai/api.py +0 -0
- {mostlyai-0.3.10 → mostlyai-0.3.11}/mostlyai/base.py +0 -0
- {mostlyai-0.3.10 → mostlyai-0.3.11}/mostlyai/connectors.py +0 -0
- {mostlyai-0.3.10 → mostlyai-0.3.11}/mostlyai/exceptions.py +0 -0
- {mostlyai-0.3.10 → mostlyai-0.3.11}/mostlyai/model.py +0 -0
- {mostlyai-0.3.10 → mostlyai-0.3.11}/mostlyai/shares.py +0 -0
- {mostlyai-0.3.10 → mostlyai-0.3.11}/mostlyai/synthetic_datasets.py +0 -0
- {mostlyai-0.3.10 → mostlyai-0.3.11}/mostlyai/utils.py +0 -0
|
@@ -70,6 +70,14 @@ class _MostlyGeneratorsClient(_MostlyBaseClient, _MostlySharesMixin):
|
|
|
70
70
|
table["data"] = _convert_to_base64(table["data"])
|
|
71
71
|
else:
|
|
72
72
|
raise ValueError("data must be a DataFrame or a file path")
|
|
73
|
+
# convert `columns` to list[dict], if provided as list[str]
|
|
74
|
+
if "tables" in config and config["tables"]:
|
|
75
|
+
for table in config["tables"]:
|
|
76
|
+
if "columns" in table and table["columns"]:
|
|
77
|
+
table["columns"] = [
|
|
78
|
+
{"name": col} if isinstance(col, str) else col
|
|
79
|
+
for col in table["columns"]
|
|
80
|
+
]
|
|
73
81
|
|
|
74
82
|
generator = self.request(
|
|
75
83
|
verb=POST, path=[], json=config, response_type=Generator
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|