hopeit.dataframes 0.24.1__tar.gz → 0.24.2__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.
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/PKG-INFO +2 -2
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/dataframe.py +5 -4
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit.dataframes.egg-info/PKG-INFO +2 -2
- hopeit.dataframes-0.24.2/src/hopeit.dataframes.egg-info/requires.txt +6 -0
- hopeit.dataframes-0.24.1/src/hopeit.dataframes.egg-info/requires.txt +0 -6
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/README.md +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/setup.cfg +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/setup.py +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/__init__.py +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/dataframeobject.py +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/py.typed +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/serialization/__init__.py +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/serialization/dataset.py +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/serialization/files.py +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/serialization/settings.py +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/setup/__init__.py +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/setup/dataframes.py +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit.dataframes.egg-info/SOURCES.txt +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit.dataframes.egg-info/dependency_links.txt +0 -0
- {hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit.dataframes.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hopeit.dataframes
|
|
3
|
-
Version: 0.24.
|
|
3
|
+
Version: 0.24.2
|
|
4
4
|
Summary: Hopeit Engine Dataframes Toolkit
|
|
5
5
|
Home-page: https://github.com/hopeit-git/hopeit.engine
|
|
6
6
|
Author: Leo Smerling and Pablo Canto
|
|
@@ -26,7 +26,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
26
26
|
Classifier: Framework :: AsyncIO
|
|
27
27
|
Requires-Python: >=3.8
|
|
28
28
|
Description-Content-Type: text/markdown
|
|
29
|
-
Requires-Dist: hopeit.engine[fs-storage]==0.24.
|
|
29
|
+
Requires-Dist: hopeit.engine[fs-storage]==0.24.2
|
|
30
30
|
Requires-Dist: pandas
|
|
31
31
|
Requires-Dist: numpy
|
|
32
32
|
Provides-Extra: pyarrow
|
|
@@ -81,9 +81,10 @@ class DataFrameMixin(Generic[DataFrameT, DataObject]):
|
|
|
81
81
|
def __init_from_series__(
|
|
82
82
|
self, **series: pd.Series
|
|
83
83
|
): # pylint: disable=bad-staticmethod-argument
|
|
84
|
-
if self.__data_object__["validate"]:
|
|
85
|
-
series = self._coerce_datatypes(series)
|
|
86
84
|
df = pd.DataFrame(series)
|
|
85
|
+
df.index.name = None # Removes index name to avoid colisions with series name
|
|
86
|
+
if self.__data_object__["validate"]:
|
|
87
|
+
df = pd.DataFrame(self._coerce_datatypes(df))
|
|
87
88
|
setattr(self, "__df", df[self.__dataframe__.columns])
|
|
88
89
|
|
|
89
90
|
@classmethod
|
|
@@ -171,9 +172,9 @@ class DataFrameMixin(Generic[DataFrameT, DataObject]):
|
|
|
171
172
|
else:
|
|
172
173
|
object.__setattr__(self, name, value)
|
|
173
174
|
|
|
174
|
-
def _coerce_datatypes(self,
|
|
175
|
+
def _coerce_datatypes(self, df: pd.DataFrame) -> Dict[str, pd.Series]:
|
|
175
176
|
return {
|
|
176
|
-
name: self.DATATYPE_MAPPING[field.type](
|
|
177
|
+
name: self.DATATYPE_MAPPING[field.type](df[name]) # type: ignore
|
|
177
178
|
for name, field in self.__dataframe__.fields.items()
|
|
178
179
|
}
|
|
179
180
|
|
{hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit.dataframes.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hopeit.dataframes
|
|
3
|
-
Version: 0.24.
|
|
3
|
+
Version: 0.24.2
|
|
4
4
|
Summary: Hopeit Engine Dataframes Toolkit
|
|
5
5
|
Home-page: https://github.com/hopeit-git/hopeit.engine
|
|
6
6
|
Author: Leo Smerling and Pablo Canto
|
|
@@ -26,7 +26,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
26
26
|
Classifier: Framework :: AsyncIO
|
|
27
27
|
Requires-Python: >=3.8
|
|
28
28
|
Description-Content-Type: text/markdown
|
|
29
|
-
Requires-Dist: hopeit.engine[fs-storage]==0.24.
|
|
29
|
+
Requires-Dist: hopeit.engine[fs-storage]==0.24.2
|
|
30
30
|
Requires-Dist: pandas
|
|
31
31
|
Requires-Dist: numpy
|
|
32
32
|
Provides-Extra: pyarrow
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/dataframeobject.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/serialization/dataset.py
RENAMED
|
File without changes
|
{hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/serialization/files.py
RENAMED
|
File without changes
|
|
File without changes
|
{hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/setup/__init__.py
RENAMED
|
File without changes
|
{hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit/dataframes/setup/dataframes.py
RENAMED
|
File without changes
|
{hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit.dataframes.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{hopeit.dataframes-0.24.1 → hopeit.dataframes-0.24.2}/src/hopeit.dataframes.egg-info/top_level.txt
RENAMED
|
File without changes
|