I'm working on a chatbot that returns a string message to the user. However, my current code outputs a pandas DataFrame. May I know how to convert this DataFrame to a string output? Not just for the individual cell value. But the whole DataFrame change to string format.
such that type(df) is string.
df =
Bearish Neutral Bullish
CLOV 0.041 0.817 0.142
AMD 0.037 0.742 0.222
TTCF 0.063 0.759 0.177
type(df) =
<class 'pandas.core.frame.DataFrame'>