Question

How to check whether a pandas DataFrame is empty in Python?


Annonce
Ad

Answer

if df.empty :
	# Do something if it is empty


[source]
# ID Query