共用方式為


DataFrame.WriteCsv 方法

定義

多載

WriteCsv(DataFrame, Stream, Char, Boolean, Encoding, CultureInfo)
已淘汰.

將資料框架寫入 CSV。

WriteCsv(DataFrame, String, Char, Boolean, Encoding, CultureInfo)
已淘汰.

將資料框架寫入 CSV。

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

警告

WriteCsv is obsolete and will be removed in a future version. Use SaveCsv instead.

將資料框架寫入 CSV。

[System.Obsolete("WriteCsv is obsolete and will be removed in a future version. Use SaveCsv instead.")]
public static void WriteCsv (Microsoft.Data.Analysis.DataFrame dataFrame, System.IO.Stream csvStream, char separator = ',', bool header = true, System.Text.Encoding encoding = default, System.Globalization.CultureInfo cultureInfo = default);
[<System.Obsolete("WriteCsv is obsolete and will be removed in a future version. Use SaveCsv instead.")>]
static member WriteCsv : Microsoft.Data.Analysis.DataFrame * System.IO.Stream * char * bool * System.Text.Encoding * System.Globalization.CultureInfo -> unit
Public Shared Sub WriteCsv (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

格式化值的文化特性資訊

屬性

適用於

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

警告

WriteCsv is obsolete and will be removed in a future version. Use SaveCsv instead.

將資料框架寫入 CSV。

[System.Obsolete("WriteCsv is obsolete and will be removed in a future version. Use SaveCsv instead.")]
public static void WriteCsv (Microsoft.Data.Analysis.DataFrame dataFrame, string path, char separator = ',', bool header = true, System.Text.Encoding encoding = default, System.Globalization.CultureInfo cultureInfo = default);
[<System.Obsolete("WriteCsv is obsolete and will be removed in a future version. Use SaveCsv instead.")>]
static member WriteCsv : Microsoft.Data.Analysis.DataFrame * string * char * bool * System.Text.Encoding * System.Globalization.CultureInfo -> unit
Public Shared Sub WriteCsv (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

格式化值的文化特性資訊

屬性

適用於