Skip to content

Update DataFrame.to_csv documentation to indicate using glob based naming over single file #1506

Closed

Description

@mobcdi

As mentioned in the forum https://groups.google.com/a/continuum.io/forum/#!searchin/blaze-dev/to_csv/blaze-dev/NCQfCoOWEcI/S7fwuCfeCgAJ the dask dataframe.to_csv will write to multiple csv files to overcome the issue of parallel execution on a single file.

From the documentation in the API, the cheatsheet or the introduction its not clear that a user should not provide a single filename but instead use the glob format to create multiple files using a common structure like file-*.csv

Activity

  1. mrocklin commented on Aug 26, 2016

    @mrocklin
    Member

    I agree. Currently we just copy the pandas docstring. It would be good to create our own. Can I interest you in submitting a pull request?

  2. mobcdi commented on Aug 26, 2016

    @mobcdi
    Author

    Fairly new to this word but happy to do my bit if I can. Where do you recommend I target the change?

  3. mobcdi commented on Aug 26, 2016

    @mobcdi
    Author

    #1508 and #1507 created

  4. dukebody commented on Sep 4, 2016

    @dukebody
    Contributor

    I created another PR for the docstring part, copying the pandas docstring and adding info about the multiple files features.

    The downside of this is that we have to keep track of pandas to_csv docstring updates manually. However this method should be already rock-solid stable, so I believe that won't be a serious issue.

  5. mrocklin commented on Sep 14, 2016

    @mrocklin
    Member

    Closed by #1525

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions