Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DeaMariaLeon committed Oct 7, 2024
1 parent a0c22c6 commit eb09622
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion narwhals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from narwhals.dtypes import Datetime
from narwhals.dtypes import Duration
from narwhals.dtypes import Enum
from narwhals.dtypes import Field
from narwhals.dtypes import Float32
from narwhals.dtypes import Float64
from narwhals.dtypes import Int8
Expand All @@ -19,7 +20,6 @@
from narwhals.dtypes import List
from narwhals.dtypes import Object
from narwhals.dtypes import String
from narwhals.dtypes import Field
from narwhals.dtypes import Struct
from narwhals.dtypes import UInt8
from narwhals.dtypes import UInt16
Expand Down
2 changes: 1 addition & 1 deletion narwhals/stable/v1/_dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from narwhals.dtypes import DType
from narwhals.dtypes import Duration as NwDuration
from narwhals.dtypes import Enum
from narwhals.dtypes import Field
from narwhals.dtypes import Float32
from narwhals.dtypes import Float64
from narwhals.dtypes import Int8
Expand All @@ -16,7 +17,6 @@
from narwhals.dtypes import NumericType
from narwhals.dtypes import Object
from narwhals.dtypes import String
from narwhals.dtypes import Field
from narwhals.dtypes import Struct
from narwhals.dtypes import UInt8
from narwhals.dtypes import UInt16
Expand Down
3 changes: 1 addition & 2 deletions narwhals/stable/v1/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from narwhals.stable.v1._dtypes import NumericType
from narwhals.stable.v1._dtypes import Object
from narwhals.stable.v1._dtypes import String
from narwhals.stable.v1._dtypes import Field
from narwhals.stable.v1._dtypes import Struct
from narwhals.stable.v1._dtypes import UInt8
from narwhals.stable.v1._dtypes import UInt16
Expand All @@ -43,7 +42,7 @@
"NumericType",
"Object",
"String",
"Field"
"Field",
"Struct",
"UInt8",
"UInt16",
Expand Down
2 changes: 1 addition & 1 deletion tests/frame/schema_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def test_nested_dtypes() -> None:
df = pl.DataFrame(
{"a": [[1, 2]], "b": [[1, 2]], "c": [{"a": 1}]},
schema_overrides={"b": pl.Array(pl.Int64, 2)},
) #.to_pandas(use_pyarrow_extension_array=True)
).to_pandas(use_pyarrow_extension_array=True)
nwdf = nw.from_native(df)
assert nwdf.schema == {"a": nw.List, "b": nw.Array, "c": nw.Struct}
df = pl.DataFrame(
Expand Down

0 comments on commit eb09622

Please sign in to comment.