DataFrame.SaveCsv Method

Definition

Overloads

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

Source:
DataFrame.IO.cs
Source:
DataFrame.IO.cs
Source:
DataFrame.IO.cs

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);

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

ML.NET Preview and other versions
Product Versions
ML.NET 2.0.0, 3.0.0, 4.0.0, Preview

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

Source:
DataFrame.IO.cs
Source:
DataFrame.IO.cs
Source:
DataFrame.IO.cs

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);

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

ML.NET Preview and other versions
Product Versions
ML.NET 2.0.0, 3.0.0, 4.0.0, Preview