Skip to content

ENH: add an option to read_csv to select a specific rows / sample of the csv file #3132

Closed
@jreback

Description

@jreback

propose an option, sample or keeprows (#14285)

maybe taking a callable, for really just something like sample=10

to return you every 10th row

if it takes a callbale couuld use something like: lambda x: x % 10

easy way to get a sample of the csv file

useful to avoid specifying skiprows with a big list

and to solve an issue like this:

http://stackoverflow.com/questions/15555005/get-inferred-dataframe-types-iteratively-using-chunksize

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIO CSVread_csv, to_csvIO DataIO issues that don't fit into a more specific labelIdeasLong-Term Enhancement Discussions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions