31 references to LoadCsvFromString
Microsoft.Data.Analysis.Tests (31)
DataFrame.IOTests.cs (30)
141var dataFrame = DataFrame.LoadCsvFromString(csv, separator: ',', header: true,
169DataFrame csvDf = DataFrame.LoadCsvFromString(data);
181csvDf = DataFrame.LoadCsvFromString(data, numberOfRowsToRead: 3);
217DataFrame csvDf = DataFrame.LoadCsvFromString(data, separator: ';', cultureInfo: cultureInfo);
283DataFrame csvDf = DataFrame.LoadCsvFromString(data, header: false);
296csvDf = DataFrame.LoadCsvFromString(data, header: false, numberOfRowsToRead: 3);
322DataFrame csvDf = DataFrame.LoadCsvFromString(data, header: false);
335csvDf = DataFrame.LoadCsvFromString(data, header: false, numberOfRowsToRead: 3);
410DataFrame csvDf = DataFrame.LoadCsvFromString(data,
424csvDf = DataFrame.LoadCsvFromString(data,
435Assert.ThrowsAny<ArgumentException>(() => DataFrame.LoadCsvFromString(data,
497df = DataFrame.LoadCsvFromString(data, dataTypes: new Type[] { typeof(string), typeof(short), typeof(int), typeof(long), typeof(float), typeof(string), typeof(double) });
569df = DataFrame.LoadCsvFromString(data, dataTypes: new Type[] { typeof(string), typeof(short), typeof(int), typeof(long), typeof(float), typeof(string), typeof(double), typeof(DateTime) });
574df = DataFrame.LoadCsvFromString(data);
613df = DataFrame.LoadCsvFromString(data, separator: '|');
652df = DataFrame.LoadCsvFromString(data, separator: ';');
681df = DataFrame.LoadCsvFromString(data);
694var df = DataFrame.LoadCsvFromString(data, header: true);
709var df = DataFrame.LoadCsvFromString(data, header: true, columnNames: new[] { "vendor_id", "rate_code", "passenger_count", "trip_time_in_secs", "Column0", "Column1", "Column2", "Column3" });
724var exp = Assert.ThrowsAny<ArgumentException>(() => DataFrame.LoadCsvFromString(data, header: true));
732var dataFrame = DataFrame.LoadCsvFromString("11\r\n22\r\n33", header: false, addIndexColumn: true);
752Assert.Throws<IndexOutOfRangeException>(() => DataFrame.LoadCsvFromString(data));
780df = DataFrame.LoadCsvFromString(data);
823df = DataFrame.LoadCsvFromString(data);
885df = DataFrame.LoadCsvFromString(data, dataTypes: new Type[] { typeof(string), typeof(short), typeof(int), typeof(long) });
947df = DataFrame.LoadCsvFromString(data);
1522DataFrame df = DataFrame.LoadCsvFromString(data, dataTypes: dataTypes, separator: separator);
1673DataFrame defaultDf = DataFrame.LoadCsvFromString(csvString);
1677DataFrame customDf = DataFrame.LoadCsvFromString(csvString, guessTypeFunction: CustomGuessTypeFunction);
1695Assert.Throws<FormatException>(() => DataFrame.LoadCsvFromString(csvString));