Dela via


DataFrame.WriteCsv Method

Definition

Overloads

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

Writes a DataFrame into a CSV.

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

Writes a DataFrame into a CSV.

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

Caution

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

Writes a DataFrame into a 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)

Parameters

dataFrame
DataFrame

DataFrame

csvStream
Stream

stream of CSV data to be write out

separator
Char

column separator

header
Boolean

has a header or not

encoding
Encoding

the character encoding. Defaults to UTF8 if not specified

cultureInfo
CultureInfo

culture info for formatting values

Attributes

Applies to

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

Caution

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

Writes a DataFrame into a 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)

Parameters

dataFrame
DataFrame

DataFrame

path
String

CSV file path

separator
Char

column separator

header
Boolean

has a header or not

encoding
Encoding

The character encoding. Defaults to UTF8 if not specified

cultureInfo
CultureInfo

culture info for formatting values

Attributes

Applies to