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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group