Skip to content

How can you get the length of a filtered dataframe? #1878

Discussion options

You must be logged in to vote

Can you please provide a code example? Now we don't know what you've done. In general you should always provide a code example illustrating what fails.

This should work:

import vaex
df = vaex.example()
df2 = df[df.x>0]
print(len(df2))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by derrickcchow
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