DataFrame.WriteCsv 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
參數
- 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)
參數
- path
- String
CSV 檔案路徑
- separator
- Char
資料行分隔符號
- header
- Boolean
有標頭或沒有
- encoding
- Encoding
字元編碼方式。 如果未指定,則預設為 UTF8
- cultureInfo
- CultureInfo
格式化值的文化特性資訊
- 屬性