TheNeuralBit commented on PR #21762: URL: https://github.com/apache/beam/pull/21762#issuecomment-1150521965
What happens for object columns that aren't actually strings though? I wonder if a better approach would be to make sure that we get `StringDType` columns in cross-language contexts. Unfortunately I don't see a way to configure read_csv to get StringDType out. Maybe could add something akin to [`convert_dtypes`](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.convert_dtypes.html) that will attempt to coerce all object columns to strings (and raise an execution time error if it's impossible). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
