6 ms·
This is really interesting! Have you given much thought to either type annotations or decorators. One or both of them could potentially be useful for attaching
by sterlinm 4y ago
This is really interesting!
Have you given much thought to either type annotations or decorators. One or both of them could potentially be useful for attaching schema information to the DataFrame inputs/outputs of functions and for reducing boilerplate when you might want to validate those inputs/outputs before or after calling the functions.
- gsheni 4y agoI haven't given much thought to type annotations. pandas recommends using accessors to extend DataFrames (as we do in Woodwork), which are actually just decorators: https://pandas.pydata.org/pandas-docs/stable/development/extending.html#extending-pandas https://pandas.pydata.org/pandas-docs/stable/development/ext...