You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since (I guess?) 0.16, pandas supports a _constructor property on DataFrame or Series subclasses that will be used when pandas needs to create a new version of one of its datatypes. This could be used to keep track of our metadata in an easier and more robust way than the current manual implementation, where, e.g. corpus / scalar will always create a plain DataFrame and we have to copy the metadata manually, by implementing something like:
Since (I guess?) 0.16, pandas supports a
_constructor
property on DataFrame or Series subclasses that will be used when pandas needs to create a new version of one of its datatypes. This could be used to keep track of our metadata in an easier and more robust way than the current manual implementation, where, e.g.corpus / scalar
will always create a plain DataFrame and we have to copy the metadata manually, by implementing something like:It would require to get rid of much of the conversion and copying code, though.
The text was updated successfully, but these errors were encountered: