rustat-python-api 0.4.2__tar.gz → 0.4.3__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.
- {rustat-python-api-0.4.2/rustat_python_api.egg-info → rustat-python-api-0.4.3}/PKG-INFO +1 -1
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api/models_api.py +8 -8
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3/rustat_python_api.egg-info}/PKG-INFO +1 -1
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/setup.py +1 -1
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/LICENSE +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/README.md +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/pyproject.toml +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api/__init__.py +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api/config.py +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api/parser.py +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api/processing.py +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api/urls.py +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api.egg-info/SOURCES.txt +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api.egg-info/dependency_links.txt +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api.egg-info/requires.txt +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api.egg-info/top_level.txt +0 -0
- {rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/setup.cfg +0 -0
|
@@ -47,12 +47,12 @@ class DynamoLab:
|
|
|
47
47
|
df = data.copy()
|
|
48
48
|
df[inplace_column] = np.array(response.json()["prediction"])
|
|
49
49
|
return df
|
|
50
|
-
|
|
51
|
-
if return_type == "json":
|
|
52
|
-
return response.json()
|
|
53
|
-
elif return_type == "list":
|
|
54
|
-
return response.json()["prediction"]
|
|
55
|
-
elif return_type == "numpy":
|
|
56
|
-
return np.array(response.json()["prediction"])
|
|
57
50
|
else:
|
|
58
|
-
|
|
51
|
+
if return_type == "json":
|
|
52
|
+
return response.json()
|
|
53
|
+
elif return_type == "list":
|
|
54
|
+
return response.json()["prediction"]
|
|
55
|
+
elif return_type == "numpy":
|
|
56
|
+
return np.array(response.json()["prediction"])
|
|
57
|
+
else:
|
|
58
|
+
raise ValueError("return_type must be one of: json, list, numpy")
|
|
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
|
{rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rustat-python-api-0.4.2 → rustat-python-api-0.4.3}/rustat_python_api.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|