この記事では、Python(標準ライブラリのみ:sqlite3, csv)を使ってローカルのCSVファイルをSQLiteに取り込み、簡単な集計をしてCSVに書き出す手順を説明します。 スーパーなどで使われるposデータを参考に作成しました。 ※このCSVファイルはAIで生成した ...
ちょっと前まで専門家の領域だと思われていた機械学習、深層学習などAIによる処理がPythonのおかげでとても身近になった。Pythonのscikit-learnやTensorFlowなどのライブラリを使えばデータの自動分類ツールや予測ツールを自作できる。 ただし、そのためにはそれ ...
世の中で最も使われているデータ形式の一つ、「CSVファイル」 の扱い方を学びます。ExcelやGoogleスプレッドシートで開けるあの形式ですね。これをPythonで扱えるようになると、一気に「データ分析」の入り口に立つことができます。 📅 23日目:表形式の ...
A CSV file is a “comma-separated values” file. In plain English, this is a text file that contains an unusually large amount of data. More often than not, this is used in order to create databases of ...
Writing to files is one of the most important things you will learn in any new programming language. This allows you to save user data for future reference, to manipulate large data sets, or to build ...