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
resolves as DataType(Array(Int64, shape=(2, 2, 2)))
If shape is an int or tuple of size 1 behaviour is as expected. The size of the inferred DataType grows with increasing tuple length, e.g. a tuple with 3 elements yields a datatype with a length of 5.
Expected behavior
Polars evaluation matches the expected behaviour.
pl.Array(pl.Int64(), shape=(2, 2))
returns Array(Int64, shape=(2, 2))
Desktop (please complete the following information):
OS: macOS Sequoia 15.3
Python: 3.12
Pandera version: 0.22.1
Polars version: 1.22.0
The text was updated successfully, but these errors were encountered:
Describe the bug
Unexpected shape of polars
Array
type when dimensionality is greater than 1.Code Sample, a copy-pastable example
resolves as
DataType(Array(Int64, shape=(2, 2, 2)))
If shape is an
int
ortuple
of size 1 behaviour is as expected. The size of the inferredDataType
grows with increasingtuple
length, e.g. a tuple with 3 elements yields a datatype with a length of 5.Expected behavior
Polars evaluation matches the expected behaviour.
returns
Array(Int64, shape=(2, 2))
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: