arrow_backRetour aux issues
dask/dask
#11884
Débutant
Ouvrirarrow_forward
Débutant
Ouvrirarrow_forward
Débutant
Ouvrirarrow_forward
`.str.split` coerces `dtype` to `object`
ecoDébutant
good first issue
dataframe
descriptionDescription
**Describe the issue**:
The `.str.split` method coerces `dtype` from `string` to `object`. This behavior is also inconsistent with `pandas` (if that matters).
**Minimal complete verifiable example**:
Code
```python
import dask.dataframe as dd
import pandas as pd
data = {"c": ["a,b,c", "d,e,f", "g,h,i"]}
# `pandas`
df = pd.DataFrame(data, dtype="string[pyarrow]")
print(df.dtypes)
print(df["c"].str.split(",", n=1, expand=True).dtypes)
# `dask`
ddf = dd.from_pandas(df)
print(ddf.dtypes)
print(ddf["c"].str.split(",", n=1, expand=True).dtypes)
```
Output
```
c string[pyarrow]
dtype: object
0 string[pyarrow]
1 string[pyarrow]
dtype: object
c string[pyarrow]
dtype: object
0 object
1 object
dtype: object
```
**Environment**:
- Dask version: 2025.3.0
- Python version: 3.10.16
- Operating System: Ubuntu 24.04.2 LTS
- Install method (conda, pip, source): pip
Issues similaires
calkit/calkit
star53
Poids du dépôt moyen
VS Code extension should be robust to YAML parser errors
Seeing this error: ``` Failed to read calkit.yaml: YAMLParseError: A block sequence may not be used as an implicit map…
Python
bug
good first issue
fu351/Doberman-Core
star211
Poids du dépôt léger
dash: a manual Refresh control
The dashboard polls: `refreshStats()` (`src/doberman/dash/app.py:408`) every 5 s and `refreshPending()` (`:546`) every …
Python
enhancement
good first issue
fu351/Doberman-Core
star211
Poids du dépôt léger
dash: "Copy details" button on each pending-approval card
Each pending-approval card in the dashboard (`renderPending`, `src/doberman/dash/app.py:448-544`) shows the risk badge,…
Python
enhancement
good first issue