Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
See Also
--------
vDataFrame.pie : Draws the Pie Chart of the vcolumn based on an aggregation.
"""
check_types([
("method", method, [str], False),
("of", of, [str], False),
("max_cardinality", max_cardinality, [int, float], False),
("h", h, [int, float], False)])
method = method.lower()
if (of):
columns_check([of], self.parent)
of = vdf_columns_names([of], self.parent)[0]
from verticapy.plot import pie
pie(self, method, of, max_cardinality, h, True)
return (self.parent)
#---#
See Also
--------
vDataFrame.donut : Draws the Donut Chart of the vcolumn based on an aggregation.
"""
check_types([
("method", method, [str], False),
("of", of, [str], False),
("max_cardinality", max_cardinality, [int, float], False),
("h", h, [int, float], False)])
method = method.lower()
if (of):
columns_check([of], self.parent)
of = vdf_columns_names([of], self.parent)[0]
from verticapy.plot import pie
pie(self, method, of, max_cardinality, h, False)
return (self.parent)
#---#