Delimited Text File.Read Data Frame Method
Definition
Namespace: Numerics.NET.Data.Text
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3
Overload List
Read | Reads a data frame from a stream in delimited text format. |
Read | Reads a data frame from a file in delimited text format. |
Read | Reads a data frame from a stream in delimited text format. |
Read | Reads a data frame from a file in delimited text format. |
Read | Reads a data frame from a stream in delimited text format. |
Read | Reads a data frame from a file in delimited text format. |
ReadDataFrame(Stream, DelimitedTextOptions)
Reads a data frame from a stream in delimited text format.
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.
ReadDataFrame<R, C>(Stream, DelimitedTextOptions)
Reads a data frame from a stream in delimited text format.
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.
ReadDataFrame(String, DelimitedTextOptions)
Reads a data frame from a file in delimited text format.
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
File | The specified file does not exist. |
ReadDataFrame<R, C>(String, DelimitedTextOptions)
Reads a data frame from a file in delimited text format.
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
File | The specified file does not exist. |
ReadDataFrame<R>(Stream, String, Boolean, DelimitedTextOptions)
Reads a data frame from a stream in delimited text format.
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
Key | A column named keyColumn was not found in the file. |
ReadDataFrame<R>(String, String, Boolean, DelimitedTextOptions)
Reads a data frame from a file in delimited text format.
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
File | The specified file does not exist. |
Key | A column named keyColumn was not found in the file. |