mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
refactor: pandas serialize and deserialize removed from global
namespace.
This commit is contained in:
parent
265bad3ed8
commit
f58ef11845
2 changed files with 8 additions and 8 deletions
|
@ -48,6 +48,6 @@ def test_gz_serialization():
|
|||
my_obs = pe.pseudo_Obs(0.1, 0.01, "pandas DataFrame ensemble only for test purposes.")
|
||||
my_df = pd.DataFrame([{"Label": 1, "Obs": my_obs}])
|
||||
for gz in [False, True]:
|
||||
ser = pe.input.pandas.serialize_df(my_df, gz=gz)
|
||||
deser = pe.input.pandas.deserialize_df(ser)
|
||||
ser = pe.input.pandas._serialize_df(my_df, gz=gz)
|
||||
deser = pe.input.pandas._deserialize_df(ser)
|
||||
np.all(my_df == deser)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue