Page 1 of 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,

Posted: Thu Jul 14, 2022 2:19 pm
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 34 times