Skip to content

User defined functions for cuDF tutorial #1

@beckernick

Description

@beckernick

@asmeurer noted that (at least some) of our introductory cuDF content doesn't have any kernel functions. We can use content from here if we want to discuss UDFs.

Or, for less trivial examples, we can use the example of "exact" lat/long distance function UDFs comparing pandas and cuDF. With a numba.cuda vincenty distance function + df.apply_rows, we were able to do in < 1 second what would take pandas 2.5 hours with df.apply (obviously, this isn't a completely fair comparison since you could use standard numba, but the point it makes still stands). Any non-trivial UDF at scale gets a huge speedup vs pandas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions