Note: This API is now obsolete.
Reads a data frame from a CSV file and uses the specified column
as the row index.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
[ObsoleteAttribute("Use the classes in the Extreme.Data package instead.")]
public static DataFrame<R, string> ReadCsv<R>(
string path,
string keyColumn,
bool dropKeyColumn = true,
bool hasHeaders = true,
int skipLines = 0,
CultureInfo culture = null,
bool decimalAsDouble = true,
int inferenceRows = 10
)
<ObsoleteAttribute("Use the classes in the Extreme.Data package instead.")>
Public Shared Function ReadCsv(Of R) (
path As String,
keyColumn As String,
Optional dropKeyColumn As Boolean = true,
Optional hasHeaders As Boolean = true,
Optional skipLines As Integer = 0,
Optional culture As CultureInfo = Nothing,
Optional decimalAsDouble As Boolean = true,
Optional inferenceRows As Integer = 10
) As DataFrame(Of R, String)
public:
[ObsoleteAttribute(L"Use the classes in the Extreme.Data package instead.")]
generic<typename R>
static DataFrame<R, String^>^ ReadCsv(
String^ path,
String^ keyColumn,
bool dropKeyColumn = true,
bool hasHeaders = true,
int skipLines = 0,
CultureInfo^ culture = nullptr,
bool decimalAsDouble = true,
int inferenceRows = 10
)
[<ObsoleteAttribute("Use the classes in the Extreme.Data package instead.")>]
static member ReadCsv :
path : string *
keyColumn : string *
?dropKeyColumn : bool *
?hasHeaders : bool *
?skipLines : int *
?culture : CultureInfo *
?decimalAsDouble : bool *
?inferenceRows : int
(* Defaults:
let _dropKeyColumn = defaultArg dropKeyColumn true
let _hasHeaders = defaultArg hasHeaders true
let _skipLines = defaultArg skipLines 0
let _culture = defaultArg culture null
let _decimalAsDouble = defaultArg decimalAsDouble true
let _inferenceRows = defaultArg inferenceRows 10
*)
-> DataFrame<'R, string>
Parameters
- path
- Type: SystemString
The path to the file. - keyColumn
- Type: SystemString
The name of the column that contains the column keys. - dropKeyColumn (Optional)
- Type: SystemBoolean
If , the key column
is not included in the returned data frame. - hasHeaders (Optional)
- Type: SystemBoolean
Specifies whether the first record contains
column headers. The default is . - skipLines (Optional)
- Type: SystemInt32
The number of lines to skip
at the beginning of the file. The default is 0. - culture (Optional)
- Type: System.GlobalizationCultureInfo
The culture to use for parsing numbers and dates. - decimalAsDouble (Optional)
- Type: SystemBoolean
Specifies whether columns with decimal values should
be returned as Double or Decimal. - inferenceRows (Optional)
- Type: SystemInt32
The number of records to use to infer
the data types of the columns. The default is 10.
Type Parameters
- R
- The type of the row keys.
Return Value
Type:
DataFrameR,
StringA data frame that contains the data in the CSV file.
Reference