Question: Write a function to generate heatmap. ( 1 5 % ) - In the parameter list, it supplies a csv filename and the output

Write a function to generate heatmap. (15\%)
- In the parameter list, it supplies a csv filename and the output filename.
- Obtain the correlation matrix by performing the correlation analysis for all pairs of data (row) using Kendall rank correlation coefficient (KCC)
- Construct the heatmap with the correlation matrix
- Show the value of the KCCs in the plot with 1 decimal place
- Save the plots as the specified output file. Do not show the plots.
This problem is about a heatmap.
Code:
```
# Problem 6
import seaborn as sns
def problem_6(filename, output="q6.jpg"):
# write your logic here
plt.savefig(output) # do not show the plt
```
Execution:
```
filename ="q6.csv"
problem_6(filename)
```
Write a function to generate heatmap. ( 1 5 \ % )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!