A clear and concise description of what the bug is.
To Reproduce
To help us to reproduce this bug, please provide information below:
import xorbits.pandas as pd
pdf = pd.DataFrame({"A":[1, 2, 3], "B": [["1"], ["2"], ["3"]]})
pdf["B"].map(lambda x: x[0], dtype="string")
Traceback (most recent call last):
File "/Users/codingl2k1/Work/xorbits/python/xorbits/pandas/mars_adapters/core.py", line 179, in wrapped
return from_mars(c(*new_args, **new_kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/codingl2k1/Work/xorbits/python/xorbits/_mars/dataframe/base/map.py", line 275, in series_map
return op(series, dtype=dtype, skip_infer=skip_infer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/codingl2k1/Work/xorbits/python/xorbits/_mars/core/mode.py", line 78, in _inner
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/codingl2k1/Work/xorbits/python/xorbits/_mars/dataframe/base/map.py", line 112, in __call__
dtype = np.dtype(dtype)
^^^^^^^^^^^^^^^
TypeError: data type 'string' not understood
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
To help us to reproduce this bug, please provide information below:
xorbits.pandas should support pd dtypes: https://pandas.pydata.org/docs/user_guide/text.html
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.