in databao/core/executor.py [0:0]
def _to_markdown(self) -> str:
text_parts = []
text_parts.append(self.text)
if self.code is not None:
text_parts.append(f"```\n{self.code}\n```")
if self.df is not None:
text_parts.append(self.df.head(10).to_markdown())
return "\n\n".join(text_parts)