Skip to content

DOC: file IO in doctest examples #20302

Closed
@jorisvandenbossche

Description

@jorisvandenbossche

In several docstrings we write some data to a temporary file to illustrate reading / writing functionality.

However, this leaves behind those files when running the docstest, which is not ideal.

@TomAugspurger from #20208 (review)

We can

  • convert this to a regular code-block
  • Use io.StringIO, which is uglier but doesn't leave behind a file
  • Add a bit to os.remove('test.csv')

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsIO DataIO issues that don't fit into a more specific label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions