nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Data.Framework / DataSet

DataSet

Full name Microsoft.VisualBasic.Data.Framework.IO.DataSet Assembly Microsoft.VisualBasic.Data.Framework Members 8

The numeric dataset, DynamicPropertyBase, Double.

00 Remarks

(数值类型的数据集合,每一个数据实体对象都有自己的编号以及数据属性)

01 Syntax

Microsoft.VisualBasic.Data.Framework.IO.DataSet

02 Methods

NameOverloadsSummary
Append 1 将一系列数据添加进入当前的数据集对象实例之中
Copy 1 Copy prop[erty value
SubSet 1 直接使用labels取出DynamicPropertyBase.Properties之中的一个子集 对于不存在的属性,默认值为零
LoadDataSet 1 The dataset for this table loader should be in format like: + First column should be a string value column for indicate the dataset row uniquely.
LoadDataSet 1 这个函数可以处理csv以及tsv数据格式
LoadMatrix 1 加载一个矩阵数据:单元格全是数字类型,但是缺少第一列ID数据

03 Properties

NameOverloadsSummary
ID 1 当前的这条数据记录在整个数据集之中的唯一标记符
Vector 1 equivalent to DynamicPropertyBase.Properties.Values.ToArray

04 Members

method Append #
Append(Property(Of Double), Func(Of Double, Double, Double))

将一系列数据添加进入当前的数据集对象实例之中

Parameters
NameTypeDescription
dataProperty(Of Double)

数据系列

duplicatedFunc(Of Double, Double, Double)

-

method Copy #
Copy

Copy prop[erty value

method SubSet #
SubSet(IEnumerable(Of String))

直接使用labels取出DynamicPropertyBase.Properties之中的一个子集 对于不存在的属性,默认值为零

Parameters
NameTypeDescription
labelsIEnumerable(Of String)

-

method LoadDataSet #
LoadDataSet(String, String, Dictionary(Of String, String), Boolean, Encoding, Boolean)

The dataset for this table loader should be in format like:

  • First column should be a string value column for indicate the dataset row uniquely.
  • If the first column is not the rows' unique id, then uidMap parameter should be provided for specific the which column is your datasets' uid column
  • Then all of the other column will be treated as the numeric property data

uidMap一般情况下会自动进行判断,不需要具体的设置

Parameters
NameTypeDescription
pathString

-

uidMapString

默认是使用csv文件的第一行第一个单元格中的内容作为标识符,但是有时候可能标识符不是在第一列的,则这个时候就需要对这个参数进行赋值了

fieldNameMapsDictionary(Of String, String)

[name_in_file => name_after_load]

method LoadDataSet #
LoadDataSet``1(String, String, Encoding, Boolean, Boolean)

这个函数可以处理csv以及tsv数据格式

Type Parameters
NameDescription
T
Parameters
NameTypeDescription
path$String

-

uidMap$String

-

encodingEncoding

-

method LoadMatrix #
LoadMatrix(String, Boolean, Encoding)

加载一个矩阵数据:单元格全是数字类型,但是缺少第一列ID数据

Parameters
NameTypeDescription
pathString

-

isTsvBoolean

-

encodingEncoding

-

property ID #
ID

当前的这条数据记录在整个数据集之中的唯一标记符

Remarks

20191031 重写这个属性会造成FileFormat.SolveDataSetIDMapping()失效

property Vector #
Vector

equivalent to DynamicPropertyBase.Properties.Values.ToArray

Remarks

在进行序列化为csv表格文件的时候,这个属性将会被忽略掉