Skip to content

How to catch error if parquet file is empty? #1931

Answered by JovanVeljanoski
Hasham04 asked this question in Q&A
Discussion options

You must be logged in to vote

Does vaex raise an error if a parquet file is empty? Maybe you can you a try and except there?
If no error and you simply get an empty dataframe, then what's wrong with

if len(df) > 0:
    continue   # do transformations
else:
    print('dataframe is empty')

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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