verticapy.vDataFrame.empty#
- vDataFrame.empty() bool #
Returns True if the vDataFrame is empty.
Returns#
- bool
True if the vDataFrame has no vDataColumns.
Examples#
Let’s begin by importing VerticaPy.
import verticapy as vp
Hint
By assigning an alias to
verticapy
, we mitigate the risk of code collisions with other libraries. This precaution is necessary because verticapy uses commonly known function names like “average” and “median”, which can potentially lead to naming conflicts. The use of an alias ensures that the functions fromverticapy
are used as intended without interfering with functions from other libraries.Let us create a dummy dataset and check:
vdf = vp.vDataFrame({"val": [0, 10, 20]})
123valInteger100%1 0 2 10 3 20 Let’s check if it is empty:
vdf.empty() Out[2]: False
See also