cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

In pyspark, how do you draw histogram from groupedby data?

User16765131552
Contributor III

I have a dataframe that looks like the following,

+-------+--------+
|Charges|  Status|
+-------+--------+
|  495.6|  Denied|
|1806.28|  Denied|
|  261.3|Accepted|
| 8076.5|Accepted|
|1041.24|  Denied|
| 507.88|  Denied|
|  208.0|Accepted|
| 152.49|  Denied|
|  146.0|Accepted|
|2794.14|Accepted|
+-------+--------+

How do I get two histograms based on groupBy('Status), using the databricks' display() function? Thank you.

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now