Reads a data frame from a CSV file and uses the specified column
as the row index.
Namespace: Extreme.CollectionsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public static DataFrame<R, string> ReadCsv<R>(
string path,
string keyColumn,
bool dropKeyColumn = false
)
Public Shared Function ReadCsv(Of R) (
path As String,
keyColumn As String,
Optional dropKeyColumn As Boolean = false
) As DataFrame(Of R, String)
public:
generic<typename R>
static DataFrame<R, String^>^ ReadCsv(
String^ path,
String^ keyColumn,
bool dropKeyColumn = false
)
static member ReadCsv :
path : string *
keyColumn : string *
?dropKeyColumn : bool
(* Defaults:
let _dropKeyColumn = defaultArg dropKeyColumn false
*)
-> 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.
Type Parameters
- R
- The type of the row keys.
Return Value
Type:
DataFrameR,
StringA data frame that contains the data in the CSV file.
Numerical Libraries
Supported in: 5.x
Reference