Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Skipwhitespace#76

Merged
catherinedevlin merged 3 commits into
masterfrom
skipwhitespace
Jul 25, 2016
Merged

Skipwhitespace#76
catherinedevlin merged 3 commits into
masterfrom
skipwhitespace

Conversation

@vrajmohan

Copy link
Copy Markdown
Contributor

No description provided.

As the product is database agnostic, there is no need to install
psycopg2.
This removes leading spaces in field names and field values.
E.g,
name, age
Tom, 12

will be parsed as:
"name", "age"
"Tom", 12
Comment thread utils.py
# Pass data types to iterator to ensure consistent types across chunks
dtypes = pd.read_csv(file.name, nrows=infer_size).dtypes
dtypes = pd.read_csv(file.name, nrows=infer_size,
skipinitialspace=True).dtypes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That's nice, I hadn't known about skipinitialspace!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants