We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looks like DataFrame can't handle CSV files where line breaks occur.
DataFrame
var frame = DataFrame.LoadCsv(fileName); foreach (var row in frame.Rows) { Console.WriteLine(row[0]); Console.WriteLine(row[1]); Console.WriteLine(row[2]); Console.WriteLine(); }
CSV contents:
Name,Age,Description Paul,34,"Paul lives in Vermont VA." Victor,29,"Victor: Funny guy" Maria,31,
Prints the contents of the CSV
Exception:
Unhandled exception. System.FormatException: Line 3 has less columns than expected at Microsoft.Data.Analysis.DataFrame.GuessKind(Int32 col, List`1 read) at Microsoft.Data.Analysis.DataFrame.LoadCsv(Stream csvStream, Char separator, Boolean header, String[] columnNames, Type[] dataTypes, Int64 numberOfRowsToRead, Int32 guessRows, Boolean addIndexColumn, Encoding encoding) at Microsoft.Data.Analysis.DataFrame.LoadCsv(String filename, Char separator, Boolean header, String[] columnNames, Type[] dataTypes, Int32 numRows, Int32 guessRows, Boolean addIndexColumn, Encoding encoding) at ConsoleApp49.Program.Main(String[] args)
The text was updated successfully, but these errors were encountered:
Unable to repro in version 0.20.0-preview.22313.1. Closing this issue for now.
Sorry, something went wrong.
No branches or pull requests
Looks like
DataFrame
can't handle CSV files where line breaks occur.Repro
CSV contents:
Expected behavior
Prints the contents of the CSV
Actual behavior
Exception:
The text was updated successfully, but these errors were encountered: