31 references to LoadCsvFromString
Microsoft.Data.Analysis.Tests (31)
DataFrame.IOTests.cs (30)
135var dataFrame = DataFrame.LoadCsvFromString(csv, separator: ',', header: true,
163DataFrame csvDf = DataFrame.LoadCsvFromString(data);
175csvDf = DataFrame.LoadCsvFromString(data, numberOfRowsToRead: 3);
211DataFrame csvDf = DataFrame.LoadCsvFromString(data, separator: ';', cultureInfo: cultureInfo);
277DataFrame csvDf = DataFrame.LoadCsvFromString(data, header: false);
290csvDf = DataFrame.LoadCsvFromString(data, header: false, numberOfRowsToRead: 3);
316DataFrame csvDf = DataFrame.LoadCsvFromString(data, header: false);
329csvDf = DataFrame.LoadCsvFromString(data, header: false, numberOfRowsToRead: 3);
404DataFrame csvDf = DataFrame.LoadCsvFromString(data,
418csvDf = DataFrame.LoadCsvFromString(data,
429Assert.ThrowsAny<ArgumentException>(() => DataFrame.LoadCsvFromString(data,
491df = DataFrame.LoadCsvFromString(data, dataTypes: new Type[] { typeof(string), typeof(short), typeof(int), typeof(long), typeof(float), typeof(string), typeof(double) });
563df = DataFrame.LoadCsvFromString(data, dataTypes: new Type[] { typeof(string), typeof(short), typeof(int), typeof(long), typeof(float), typeof(string), typeof(double), typeof(DateTime) });
568df = DataFrame.LoadCsvFromString(data);
607df = DataFrame.LoadCsvFromString(data, separator: '|');
646df = DataFrame.LoadCsvFromString(data, separator: ';');
675df = DataFrame.LoadCsvFromString(data);
688var df = DataFrame.LoadCsvFromString(data, header: true);
703var df = DataFrame.LoadCsvFromString(data, header: true, columnNames: new[] { "vendor_id", "rate_code", "passenger_count", "trip_time_in_secs", "Column0", "Column1", "Column2", "Column3" });
718var exp = Assert.ThrowsAny<ArgumentException>(() => DataFrame.LoadCsvFromString(data, header: true));
726var dataFrame = DataFrame.LoadCsvFromString("11\r\n22\r\n33", header: false, addIndexColumn: true);
746Assert.Throws<IndexOutOfRangeException>(() => DataFrame.LoadCsvFromString(data));
774df = DataFrame.LoadCsvFromString(data);
817df = DataFrame.LoadCsvFromString(data);
879df = DataFrame.LoadCsvFromString(data, dataTypes: new Type[] { typeof(string), typeof(short), typeof(int), typeof(long) });
941df = DataFrame.LoadCsvFromString(data);
1516DataFrame df = DataFrame.LoadCsvFromString(data, dataTypes: dataTypes, separator: separator);
1667DataFrame defaultDf = DataFrame.LoadCsvFromString(csvString);
1671DataFrame customDf = DataFrame.LoadCsvFromString(csvString, guessTypeFunction: CustomGuessTypeFunction);
1689Assert.Throws<FormatException>(() => DataFrame.LoadCsvFromString(csvString));