共用方式為


DataFrame.SaveCsv 方法

定義

多載

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

將 DataFrame 儲存至 CSV。

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

將 DataFrame 儲存至 CSV。

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

將 DataFrame 儲存至 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)

將 DataFrame 儲存至 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

格式化值的文化特性資訊

適用於