Extreme Optimization™: Complexity made simple.

Math and Statistics
Libraries for .NET

  • Home
  • Features
    • Math Library
    • Vector and Matrix Library
    • Statistics Library
    • Performance
    • Usability
  • Documentation
    • Introduction
    • Math Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Reference
  • Resources
    • Downloads
    • QuickStart Samples
    • Sample Applications
    • Frequently Asked Questions
    • Technical Support
  • Order
  • Company
    • About us
    • Testimonials
    • Customers
    • Press Releases
    • Careers
    • Partners
    • Contact us
Introduction
Deployment Guide
Nuget packages
Configuration
Using Parallelism
Expand Mathematics Library User's GuideMathematics Library User's Guide
Expand Vector and Matrix Library User's GuideVector and Matrix Library User's Guide
Expand Data Analysis Library User's GuideData Analysis Library User's Guide
Expand Statistics Library User's GuideStatistics Library User's Guide
Expand Data Access Library User's GuideData Access Library User's Guide
Expand ReferenceReference

Skip Navigation LinksHome»Documentation»Reference»Extreme.DataAnalysis»DataFrame Class»Methods»ReadCsv Method Overloads»ReadCsv Method (String, Boolean, Int32, CultureInfo, Boolean, Int32)

DataFrameReadCsv Method (String, Boolean, Int32, CultureInfo, Boolean, Int32)

Extreme Optimization Numerical Libraries for .NET Professional

Note: This API is now obsolete.

Reads a data frame from a CSV file.

Namespace:  Extreme.DataAnalysis
Assembly:  Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
Syntax

C#
VB
C++
F#
Copy
[ObsoleteAttribute("Use the classes in the Extreme.Data package instead.")]
public static DataFrame<long, string> ReadCsv(
	string path,
	bool hasHeaders = true,
	int skipLines = 0,
	CultureInfo culture = null,
	bool decimalAsDouble = true,
	int inferenceRows = 2147483647
)
<ObsoleteAttribute("Use the classes in the Extreme.Data package instead.")>
Public Shared Function ReadCsv ( 
	path As String,
	Optional hasHeaders As Boolean = true,
	Optional skipLines As Integer = 0,
	Optional culture As CultureInfo = Nothing,
	Optional decimalAsDouble As Boolean = true,
	Optional inferenceRows As Integer = 2147483647
) As DataFrame(Of Long, String)
public:
[ObsoleteAttribute(L"Use the classes in the Extreme.Data package instead.")]
static DataFrame<long long, String^>^ ReadCsv(
	String^ path, 
	bool hasHeaders = true, 
	int skipLines = 0, 
	CultureInfo^ culture = nullptr, 
	bool decimalAsDouble = true, 
	int inferenceRows = 2147483647
)
[<ObsoleteAttribute("Use the classes in the Extreme.Data package instead.")>]
static member ReadCsv : 
        path : string * 
        ?hasHeaders : bool * 
        ?skipLines : int * 
        ?culture : CultureInfo * 
        ?decimalAsDouble : bool * 
        ?inferenceRows : int 
(* Defaults:
        let _hasHeaders = defaultArg hasHeaders true
        let _skipLines = defaultArg skipLines 0
        let _culture = defaultArg culture null
        let _decimalAsDouble = defaultArg decimalAsDouble true
        let _inferenceRows = defaultArg inferenceRows 2147483647
*)
-> DataFrame<int64, string> 

Parameters

path
Type: SystemString
The path to the file.
hasHeaders (Optional)
Type: SystemBoolean
Specifies whether the first record contains column headers. The default is .
skipLines (Optional)
Type: SystemInt32
The number of lines to skip at the beginning of the file. The default is 0.
culture (Optional)
Type: System.GlobalizationCultureInfo
The culture to use for parsing numbers and dates.
decimalAsDouble (Optional)
Type: SystemBoolean
Specifies whether columns containing numbers with decimals should be returned as Double instead of Decimal.
inferenceRows (Optional)
Type: SystemInt32
The number of records to use to infer the data types of the columns. The default is 10.

Return Value

Type: DataFrameInt64, String
A data frame that contains the data in the CSV file.
Exceptions

ExceptionCondition
IOException

The file could not be found.

FormatException

The file is not in the proper format.

See Also

Reference

DataFrame Class
ReadCsv Overload
Extreme.DataAnalysis Namespace

Copyright (c) 2004-2023 ExoAnalytics Inc.

Send comments on this topic to support@extremeoptimization.com

Copyright © 2004-2023, Extreme Optimization. All rights reserved.
Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc.
Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo
are registered trademarks of Microsoft Corporation.