Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

StringIO

<_io.StringIO at 0x7ff1ec50e940>
11
'hello world'

BytesIO

  1. You can write anything into a BytesIO. For example, you can pass a BytesIO to pandas.DataFrame.to_parquet to write a pandas DataFrame to the BytesIO in the Parquet format. For more details, please refer to Pandas IO.

<_io.BytesIO at 0x7ff1ec5340e0>
<_io.BytesIO at 0x7ff1ec5340e0>
b'hello world'