i have a large dataset consists of 120 rows and 6 coulmuns, and I'm trying to generate a heatmap to visualise the date,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

i have a large dataset consists of 120 rows and 6 coulmuns, and I'm trying to generate a heatmap to visualise the date,

Post by answerhappygod »

i have a large dataset consists of 120 rows and 6coulmuns, and I'm trying to generate a heatmap to visualisethe date, but the heatmsap does not disply all rows it skips halfof them, this is my python code, any suggestion to show allthe rows
import numpy as npimport matplotlibmatplotlib.use('tkagg')import matplotlib.pyplot as pltimport seaborn as snsimport matplotlib.pyplot as matpltimport seaborn as sebnimport pandas as pdfrom matplotlib import pyplot as plt
Cars_Path = ('gene.xlsx')pd.read_excel(Cars_Path)
# Load the excel file into the Dataframe DFDF = pd.read_excel(Cars_Path)
DF = DF.set_index(DF.columns[0])
# Plot a Heatmap graph using seaborn (sebn)matplt.figure(figsize=(10,10))
# print heatmap by sending complete dataframe values intoit.sebn.heatmap(data=DF,annot=False, xticklabels=True,cmap='summer')plt.savefig("output.png")
I Have A Large Dataset Consists Of 120 Rows And 6 Coulmuns And I M Trying To Generate A Heatmap To Visualise The Date 1
I Have A Large Dataset Consists Of 120 Rows And 6 Coulmuns And I M Trying To Generate A Heatmap To Visualise The Date 1 (96.33 KiB) Viewed 33 times
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply