-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type inference for pt.function #40
Comments
Agreed that this is more convenient. It doesn't work for arrays, though, because ArrayType also includes the shape, which ndarray doesn't convey. We'd also need some way to communicate that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently making a python function to compute something on elements of a pixeltable dataframe or table is cumbersome, as it requires type annotation. The problem is that this is quite a basic operation, and the change coming from pandas is quite annoying.
One small thing we can do for the user is to infer the annotation from python types in the signature.
As there is a correspondence:
One current issue is dealing with video columns.
One option is to add a pt.Video python type that wraps the filesystem. It can also have some utilities for working with videos
within functions. Unlike for PIL.Image, I'm not sure there is a 'standard' for video.
In the case of PIL.image we kind of re-use it for our own work.
The text was updated successfully, but these errors were encountered: