DelimitedTextFile.ReadDataFrame Method

Definition

Namespace: Extreme.Data.Text
Assembly: Extreme.Data (in Extreme.Data.dll) Version: 3.2.0

Overload List

ReadDataFrame(Stream, DelimitedTextOptions) Reads a data frame from a stream in delimited text format.
ReadDataFrame(String, DelimitedTextOptions) Reads a data frame from a file in delimited text format.
ReadDataFrame<R>(Stream, String, Boolean, DelimitedTextOptions) Reads a data frame from a stream in delimited text format.
ReadDataFrame<R>(String, String, Boolean, DelimitedTextOptions) Reads a data frame from a file in delimited text format.
ReadDataFrame<R, C>(Stream, DelimitedTextOptions) Reads a data frame from a stream in delimited text format.
ReadDataFrame<R, C>(String, DelimitedTextOptions) Reads a data frame from a file in delimited text format.

DelimitedTextFile.ReadDataFrame(Stream, DelimitedTextOptions)

Reads a data frame from a stream in delimited text format.
C#
public static DataFrame<long, string> ReadDataFrame(
	Stream stream,
	DelimitedTextOptions options = null
)

Parameters

stream  Stream
A stream.
options  DelimitedTextOptions  (Optional)
A DelimitedTextOptions object that specifies the options to use when reading the file.

Return Value

DataFrame<Int64, String>
The data frame that was read from the stream pointed to by stream.

DelimitedTextFile.ReadDataFrame<R, C>(Stream, DelimitedTextOptions)

Reads a data frame from a stream in delimited text format.
C#
public static DataFrame<R, C> ReadDataFrame<R, C>(
	Stream stream,
	DelimitedTextOptions options = null
)

Parameters

stream  Stream
A stream.
options  DelimitedTextOptions  (Optional)
A DelimitedTextOptions object that specifies the options to use when reading the file.

Type Parameters

R
The type of the row keys of the data frame.
C
The type of the column keys of the data frame.

Return Value

DataFrame<R, C>
The data frame that was read from the stream pointed to by stream.

DelimitedTextFile.ReadDataFrame(String, DelimitedTextOptions)

Reads a data frame from a file in delimited text format.
C#
public static DataFrame<long, string> ReadDataFrame(
	string path,
	DelimitedTextOptions options = null
)

Parameters

path  String
The path to the file.
options  DelimitedTextOptions  (Optional)
A DelimitedTextOptions object that specifies the options to use when reading the file.

Return Value

DataFrame<Int64, String>
The data frame that was read from the file pointed to by path.

Exceptions

FileNotFoundException The specified file does not exist.

DelimitedTextFile.ReadDataFrame<R, C>(String, DelimitedTextOptions)

Reads a data frame from a file in delimited text format.
C#
public static DataFrame<R, C> ReadDataFrame<R, C>(
	string path,
	DelimitedTextOptions options = null
)

Parameters

path  String
The path to the file.
options  DelimitedTextOptions  (Optional)
A DelimitedTextOptions object that specifies the options to use when reading the file.

Type Parameters

R
The type of the row keys of the data frame.
C
The type of the column keys of the data frame.

Return Value

DataFrame<R, C>
The data frame that was read from the file pointed to by path.

Exceptions

FileNotFoundException The specified file does not exist.

DelimitedTextFile.ReadDataFrame<R>(Stream, String, Boolean, DelimitedTextOptions)

Reads a data frame from a stream in delimited text format.
C#
public static DataFrame<R, string> ReadDataFrame<R>(
	Stream stream,
	string keyColumn,
	bool dropKeyColumn = true,
	DelimitedTextOptions options = null
)

Parameters

stream  Stream
A stream.
keyColumn  String
The name of the column that contains the column keys.
dropKeyColumn  Boolean  (Optional)
If true, the key column is not included in the returned data frame.
options  DelimitedTextOptions  (Optional)
A DelimitedTextOptions object that specifies the options to use when reading the file.

Type Parameters

R
The element type of the key column.

Return Value

DataFrame<R, String>
The data frame that was read from the stream pointed to by stream.

Exceptions

KeyNotFoundException

A column named keyColumn was not found in the file.

DelimitedTextFile.ReadDataFrame<R>(String, String, Boolean, DelimitedTextOptions)

Reads a data frame from a file in delimited text format.
C#
public static DataFrame<R, string> ReadDataFrame<R>(
	string path,
	string keyColumn,
	bool dropKeyColumn = true,
	DelimitedTextOptions options = null
)

Parameters

path  String
The path to the file.
keyColumn  String
The name of the column that contains the column keys.
dropKeyColumn  Boolean  (Optional)
If true, the key column is not included in the returned data frame.
options  DelimitedTextOptions  (Optional)
A DelimitedTextOptions object that specifies the options to use when reading the file.

Type Parameters

R
The element type of the key column.

Return Value

DataFrame<R, String>
The data frame that was read from the file pointed to by path.

Exceptions

FileNotFoundException The specified file does not exist.
KeyNotFoundException

A column named keyColumn was not found in the file.

See Also