-
When attempting to pass a Do I need to convert the bytes to a new type of object first, before calling |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This bug occurs only when using dtypes, either directly by passing in the parameter, or when retrieved from Glue on aws-sdk-pandas/awswrangler/_data_types.py Lines 702 to 703 in cdb185f A bytes type in pandas is |
Beta Was this translation helpful? Give feedback.
This bug occurs only when using dtypes, either directly by passing in the parameter, or when retrieved from Glue
on
aws-sdk-pandas/awswrangler/_data_types.py
Lines 702 to 703 in cdb185f
A bytes type in pandas is
object
and when the desired type isbytes
- for some reason - the column is being converted to a string and re-encoded into utf-8 ... causing a bytes array ofabc
(or 61 62 63) to be stringified and then encoded asb'abc'
(or 62 27 61 62 63 27)