Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Conversation

@pgovind
Copy link

@pgovind pgovind commented May 15, 2020

Fixes #2915

Instead of falling back to a StringDataFrameColumn, we now deduce the column type correctly and append a null value to whatever the column type becomes.

Prashanth Govindarajan added 2 commits May 15, 2020 10:40
Append a null value to a column when encountering it instead of changing the column type to a StringDataFrameColumn
@pgovind pgovind requested a review from eerhardt May 15, 2020 21:01
bool rowMoveNext = rowEnumerator.MoveNext();
List<object> cachedObjectConversions = new List<object>();
while (columnMoveNext && rowMoveNext)
// Go through row first to make sure there are no data type incompatibilities
Copy link
Author

Choose a reason for hiding this comment

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

Might be easier to view this diff with whitespace turned off

Prashanth Govindarajan and others added 2 commits May 18, 2020 10:22
Co-authored-by: Günther Foidl <gue@korporal.at>
Co-authored-by: Günther Foidl <gue@korporal.at>
Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

:shipit:

@ghost
Copy link

ghost commented May 19, 2020

Hello @pgovind!

Because this pull request has the Merge-When-Green label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 82924f7 into dotnet:master May 19, 2020
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataFrame.LoadCsv doesn't handle null values when it attempts to guess the column types

3 participants