Skip to content

explain how to skip rows between header & data #10910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2015

Conversation

dacoex
Copy link
Contributor

@dacoex dacoex commented Aug 27, 2015

This is the result from
#10898

@jreback jreback added Docs IO CSV read_csv, to_csv labels Aug 28, 2015
@jreback jreback added this to the 0.17.0 milestone Aug 28, 2015
Option 1: pass rows explicitly to skiprows
""""""""""""""""""""""""""""""""""""""""""

.. code-block:: python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do this in an ipython block

@jreback jreback modified the milestones: Next Major Release, 0.17.0 Sep 1, 2015
@jreback
Copy link
Contributor

jreback commented Sep 10, 2015

can you update

@dacoex
Copy link
Contributor Author

dacoex commented Sep 21, 2015

can you update

What is missing?

@dacoex dacoex closed this Sep 21, 2015
@dacoex dacoex reopened this Sep 21, 2015
Option 1: pass rows explicitly to skiprows
""""""""""""""""""""""""""""""""""""""""""

pd.read_csv(StringIO(data.decode('UTF-8')), sep=';', skiprows=[11,12],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need start a new .. ipython:: python here

@jreback
Copy link
Contributor

jreback commented Nov 10, 2015

@jorisvandenbossche what do you think?

@jorisvandenbossche
Copy link
Member

This is the result from
pandas-dev#10898

corrections ass suggested by the comment on PR

changed code block to ipython

done like in
https://raw.githubusercontent.com/pydata/pandas/master/doc/source/10min.rst

updated acc. comment

pandas-dev#10910 (comment)
pandas-dev#10910 (comment)
@dacoex
Copy link
Contributor Author

dacoex commented Nov 10, 2015

@jorisvandenbossche done / see above.

jorisvandenbossche added a commit that referenced this pull request Nov 10, 2015
explain how to skip rows between header & data
@jorisvandenbossche jorisvandenbossche merged commit 1e98c68 into pandas-dev:master Nov 10, 2015
@jorisvandenbossche
Copy link
Member

Thanks!

@jorisvandenbossche jorisvandenbossche modified the milestones: 0.17.1, Next Major Release Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs IO CSV read_csv, to_csv
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants