Skip to content

Daft Equivalent Syntax for Pandas Dataframe.apply(axis=1) #1041

Answered by jaychia
dendihandian asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question @dendihandian!

As an aside to your question (unrelated to your question about the API itself), it might be a lot easier if we could instead maybe read the entire SQLite table as a Daft Dataframe? Then you will not have to rely on a custom Python function to query sqlite, and it is likely that you probably want something more like a .join between your SQLite table and your dataframe. But I digress!


To answer your question: There is no API for running over the entire row at a time. This is because Daft is very deliberate about exactly which columns you need, and uses this information to optimize your work. Here are some ways of adapting your use-case to canonical Da…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dendihandian
Comment options

@jaychia
Comment options

Answer selected by jaychia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants