A column in a dataframe having values of zero also checked its dtype it is int64 and while plotting the heatmap in plotly it is showing nan.
fig1 = px.imshow(df2, text_auto=True, aspect=βautoβ, width=1500, height=800)
A column in a dataframe having values of zero also checked its dtype it is int64 and while plotting the heatmap in plotly it is showing nan.
fig1 = px.imshow(df2, text_auto=True, aspect=βautoβ, width=1500, height=800)
Hi @Anand_ak-18, I canβt reproduce this, check your data again.
import pandas as pd
import plotly.express as px
import numpy as np
np.random.seed(42)
df = pd.DataFrame(
np.random.randint(0, 10, size=(20, 4)),
columns=list('ABCD')
)
fig = px.imshow(
df,
text_auto=True,
width=500,
height=500,
)
fig.show()