Dear Boss
Please review my code; it did not display the pie chart and returned an error. I would appreciate any suggestions on how I can generate the pie chart using the data from the DataFrame.
import plotly.express as px
import matplotlib.pyplot as plt
import pandas as pd
import streamlit as st
import numpy as np
df5 = pd.DataFrame( 3 * np.random.rand(4, 2), index=[“a”, “b”, “c”, “d”], columns=[“x”, “y”])
st.write(df5)
st.pyplot(df5.plot.pie(subplots=True, figsize=(8, 4)).figure)
