Plotly heat map showing nan

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()

newplot (7)