Github user HyukjinKwon commented on the issue:
https://github.com/apache/spark/pull/20567
Seems it happened to fix this case too:
```python
spark.conf.set("spark.sql.execution.arrow.enabled", "false")
df = spark.createDataFrame([[bytearray("a")]])
df.toPandas()
spark.conf.set("spark.sql.execution.arrow.enabled", "true")
df.toPandas()
```
**Before**
```
_1
0 [97]
_1
0 a
```
**After**
```
_1
0 [97]
... UserWarning...
_1
0 [97]
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]