JsonFile.ReadDataFrame Method

Definition

Namespace: Numerics.NET.Data.Json
Assembly: Numerics.NET.Data.Json (in Numerics.NET.Data.Json.dll) Version: 4.0.3

Overload List

ReadDataFrame(Stream, JsonOptions) Reads a data frame from a stream in JSON format.
ReadDataFrame(String, JsonOptions) Reads a data frame from a file in JSON format.
ReadDataFrame<R, C>(Stream, JsonOptions) Reads a data frame from a stream in JSON format.
ReadDataFrame<R, C>(String, JsonOptions) Reads a data frame from a file in JSON format.

ReadDataFrame(Stream, JsonOptions)

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

Parameters

stream  Stream
A stream.
options  JsonOptions  (Optional)
A JsonOptions 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, JsonOptions)

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

Parameters

stream  Stream
A stream.
options  JsonOptions  (Optional)
A JsonOptions 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, JsonOptions)

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

Parameters

path  String
The path to the file.
options  JsonOptions  (Optional)
A JsonOptions 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.

ReadDataFrame<R, C>(String, JsonOptions)

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

Parameters

path  String
The path to the file.
options  JsonOptions  (Optional)
A JsonOptions 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.

See Also