0
1

More than 3 years have passed since last update.

F# で CSV ファイルを読み取る方法

Last updated at Posted at 2021-07-19
  1. 作業用ディレクトリを作成して移動する
  2. CSV ファイルを用意してカレントディレクトリに置く
  3. dotnet new console -lang F# でプロジェクトを作成
  4. dotnet add package FSharp.Data で必要なパッケージをインストール
  5. 以下のようなコードを書く
  6. dotnet run を実行する(終わり)
open FSharp.Data

type CsvType = CsvProvider<"./data.csv">
let rows = CsvType.GetSample().Rows
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1