How to use the verticapy.plot.pie function in verticapy

To help you get started, we’ve selected a few verticapy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vertica / Vertica-ML-Python / verticapy / vcolumn.py View on Github external
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)
	#---#
github vertica / Vertica-ML-Python / verticapy / vcolumn.py View on Github external
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)
	#---#