TheNeuralBit commented on issue #23276:
URL: https://github.com/apache/beam/issues/23276#issuecomment-1249591254

   From https://github.com/apache/beam/pull/22587#discussion_r972161089
   
   > Interesting apparently instances of CategoricalDtype are considered equal 
to the string "category" : 
https://github.com/pandas-dev/pandas/blob/54347fe684e0f7844bf407b1fb958a5269646825/pandas/core/dtypes/dtypes.py#L366
   > 
   > The aim in our check was to avoid the case where users indicate 
astype("category") and rely on pandas to resolve the categories, since we need 
explicit categories. We should be able to find another way to check this, but 
it will have to be another bugfix.


-- 
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]

Reply via email to