verticapy.vDataFrame.info#
- vDataFrame.info() str #
Displays information about the different vDataFrame transformations.
Returns#
- str
information on the vDataFrame modifications
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 modifications:
vdf = vp.vDataFrame({"val": [0, 10, 20]})
123valInteger100%1 0 2 10 3 20 Since the
vDataFrame
just got created, it will have no modifications. We can check:vdf.info() Out[3]: 'The vDataFrame was never modified.'
Next we can add 10 to all the values:
vdf["val"] = 10 + vdf["val"]
123valInteger100%1 10 2 20 3 30 We can check the modifications:
vdf.info() Out[5]: 'The vDataFrame was modified with only one action: \n * {Thu Mar 14 18:50:07 2024} [Apply]: The vDataColumn \'val\' was transformed with the func \'x -> (10) + ("val")\'.'
See also