Skip to content

Row index does not match pandas on read_csv with skiprows and names on certain files #2239

Closed
@devin-petersohn

Description

@devin-petersohn

pandas has a very strange edge case here. The following conditions must be met:

  • skiprows must be > 1
  • names must not be None
  • index_col must be None
  • File must have different data types in each line above skiprows number

Since this is data dependent, the best course of action is to hand the decision of what number to start to pandas.

Metadata

Metadata

Labels

P0Highest priority tasks requiring immediate fixbug 🦗Something isn't workingpandas concordance 🐼Functionality that does not match pandaspandas 🤔Weird Behaviors of Pandas

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions