We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9006160 commit d49452aCopy full SHA for d49452a
tests/astype_test.py
@@ -71,6 +71,15 @@ def test_astype_numeric_fails(nullable_ints, dtype):
71
nullable_ints.x.astype(dtype).tolist()
72
73
74
+def test_astype_uint_string(df_factory_arrow, df_factory_arrow_chunked, df_factory_numpy):
75
+ # The string "uint" works for numpy but not arrow
76
+ x = [1, 2, None]
77
+ df_factory_numpy(x=x).x.astype("uint").tolist()
78
+ with pytest.raises(ValueError):
79
+ df_factory_arrow(x=x).x.astype("uint").tolist()
80
81
+ df_factory_arrow_chunked(x=x).x.astype("uint").tolist()
82
+
83
84
def test_astype_dtype():
85
df = vaex.from_arrays(x=[0, 1])
0 commit comments