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
用于设置值格式的区域性信息
- 属性