You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
A recent update to numpy has changed some of the versioning semantics, breaking DocArray's from_dataframe() method in some cases where the dataframe contains a numpy array. This has now been now fixed.
classMyDoc(BaseDoc):
embedding: NdArraytext: strda=DocVec[MyDoc](
[
MyDoc(
embedding=[1, 2, 3, 4],
text='hello',
),
MyDoc(
embedding=[5, 6, 7, 8],
text='world',
),
],
tensor_type=NdArray,
)
df_da=da.to_dataframe()
# This broke before and is now fixedda2=DocVec[MyDoc].from_dataframe(df_da, tensor_type=NdArray)
Starting with Python 3.9, Optional.__args__ is not always available, leading to some compatibility problems. This has been fixed by using the typing.get_args helper.
馃 Contributors
We would like to thank all contributors to this release:
Change "A recent version of numpy changed some equality semantics, where == is now being broadcast in more cases, breaking DocArray's from_dataframe() feature if the dataframe contains a numpy array. This is now fixed."
To: "A recent update to numpy has changed some of the version semantics, breaking DocArray's from_dataframe() method in some cases where if the dataframe contains a numpy array. This has now been now fixed."
Change "Starting from Python 3.9, Optional.__args__ is not always available, leading to breaking code paths in our code base. This fixes that by utilizing the typing.get_args helper."
To: "Starting with Python 3.9, Optional.__args__ is not always available, leading to come compatibility problems. This has been fixed by using the typing.get_args helper."
A recent update to numpy has changed some of the versioning semantics, breaking DocArray's from_dataframe() method in some cases where the dataframe contains a numpy array. This has now been now fixed.
classMyDoc(BaseDoc):
embedding: NdArraytext: strda=DocVec[MyDoc](
[
MyDoc(
embedding=[1, 2, 3, 4],
text='hello',
),
MyDoc(
embedding=[5, 6, 7, 8],
text='world',
),
],
tensor_type=NdArray,
)
df_da=da.to_dataframe()
# This broke before and is now fixedda2=DocVec[MyDoc].from_dataframe(df_da, tensor_type=NdArray)
Starting with Python 3.9, Optional.__args__ is not always available, leading to some compatibility problems. This has been fixed by using the typing.get_args helper.
:i_love_you_hand_sign: Contributors
We would like to thank all contributors to this release:
Activity
scott-martens commentedon Oct 23, 2023
Change "A recent version of numpy changed some equality semantics, where == is now being broadcast in more cases, breaking DocArray's from_dataframe() feature if the dataframe contains a numpy array. This is now fixed."
To: "A recent update to
numpyhas changed some of the version semantics, breaking DocArray'sfrom_dataframe()method in some cases where if the dataframe contains a numpy array. This has now been now fixed.""
scott-martens commentedon Oct 23, 2023
"Type handling in python 3.9" has no bug ticket?
scott-martens commentedon Oct 23, 2023
Change "Starting from Python 3.9,
Optional.__args__is not always available, leading to breaking code paths in our code base. This fixes that by utilizing thetyping.get_argshelper."To: "Starting with Python 3.9,
Optional.__args__is not always available, leading to come compatibility problems. This has been fixed by using thetyping.get_argshelper."scott-martens commentedon Oct 23, 2023
Release Note
This release contains 1 bug fix.
:ladybug: Bug Fixes
From_dataframe with numpy==1.26.1 (#1823)
A recent update to numpy has changed some of the versioning semantics, breaking DocArray's
from_dataframe()method in some cases where the dataframe contains a numpy array. This has now been now fixed.Type handling in python 3.9 (#1823)
Starting with Python 3.9,
Optional.__args__is not always available, leading to some compatibility problems. This has been fixed by using thetyping.get_argshelper.:i_love_you_hand_sign: Contributors
We would like to thank all contributors to this release: