ニュース

1. はじめに これまで、Pythonの基礎として変数・条件分岐・繰り返し・関数・各種データ構造などを扱ってきました。今回から少し実用的なテクニックとして、「ファイルの読み書き」について学びましょう。 「プログラムで作ったデータを、ファイルに保存したい」 「テキストファイルに書か ...
業務で送られてきたCSVファイルが、なんと 2GB!! Excelでは開けない、VSCode(テキストエディタ)でも開けない🥺 でも Pythonがあれば大丈夫 なのです。 重たいCSVを開かないまま欲しいデータが取れるのです。 以前、フィルタリングについて書きましたが、 今回は、シンプルに、ファイル名 ...
In this article, I'll be exploring the basics of Python, i.e. variables, input and output. You'll need Python (2.7+), a computer, and some free time. Variables Simply put, variables are like ...
The problem I've noticed is that if I append the file with each of the 100k runs (one at a time), it can happen that two threads try to save to the file at the same time and some row (s) end up empty.