Share via


DataFrame.SaveCsv Method

Definition

Overloads

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

Saves a DataFrame into a CSV.

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

Saves a DataFrame into a CSV.

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

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

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

Applies to

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

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

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

Applies to