This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Cannot convert strings to category/factor/enum #4054
Labels
You can continue the conversation there. Go to discussion →
I want to have a query result with categorical columns being encoded as pandas 'Category' or R 'factor' type for better memory efficiency. Trying to cast a string (python 'object' or R 'character' types) in a query does not produce the desired result:
I would have to manually create a type and assign it there, which is extremely inconvenient and pollutes my duckdb namespace:
The text was updated successfully, but these errors were encountered: