DataFrame.SaveCsv 方法

定义

重载

SaveCsv(DataFrame, String, Char, Boolean, Encoding, CultureInfo)

将数据帧保存到 CSV 中。

SaveCsv(DataFrame, Stream, Char, Boolean, Encoding, CultureInfo)

将数据帧保存到 CSV 中。

SaveCsv(DataFrame, String, Char, Boolean, Encoding, CultureInfo)

将数据帧保存到 CSV 中。

public static void SaveCsv (Microsoft.Data.Analysis.DataFrame dataFrame, string path, char separator = ',', bool header = true, System.Text.Encoding encoding = default, System.Globalization.CultureInfo cultureInfo = default);
static member SaveCsv : Microsoft.Data.Analysis.DataFrame * string * char * bool * System.Text.Encoding * System.Globalization.CultureInfo -> unit
Public Shared Sub SaveCsv (dataFrame As DataFrame, path As String, Optional separator As Char = ',', Optional header As Boolean = true, Optional encoding As Encoding = Nothing, Optional cultureInfo As CultureInfo = Nothing)

参数

dataFrame
DataFrame

DataFrame

path
String

CSV 文件路径

separator
Char

列分隔符

header
Boolean

有标头与否

encoding
Encoding

字符编码。 如果未指定,则默认为 UTF8

cultureInfo
CultureInfo

用于设置值格式的区域性信息

适用于

SaveCsv(DataFrame, Stream, Char, Boolean, Encoding, CultureInfo)

将数据帧保存到 CSV 中。

public static void SaveCsv (Microsoft.Data.Analysis.DataFrame dataFrame, System.IO.Stream csvStream, char separator = ',', bool header = true, System.Text.Encoding encoding = default, System.Globalization.CultureInfo cultureInfo = default);
static member SaveCsv : Microsoft.Data.Analysis.DataFrame * System.IO.Stream * char * bool * System.Text.Encoding * System.Globalization.CultureInfo -> unit
Public Shared Sub SaveCsv (dataFrame As DataFrame, csvStream As Stream, Optional separator As Char = ',', Optional header As Boolean = true, Optional encoding As Encoding = Nothing, Optional cultureInfo As CultureInfo = Nothing)

参数

dataFrame
DataFrame

DataFrame

csvStream
Stream

要写出的 CSV 数据流

separator
Char

列分隔符

header
Boolean

有标头与否

encoding
Encoding

字符编码。 如果未指定,则默认为 UTF8

cultureInfo
CultureInfo

用于设置值格式的区域性信息

适用于