cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.