Open in app

Sign In

Write

Sign In

giulio isernia
giulio isernia

965 Followers

Home

About

Mar 22

Python — Counting rows and columns in a large csv (or txt)

Let’s try to count number of rows in a large csv file. Python can help us with this easy code: import csv import time filename = "myfile.csv" # your CSV or TXT file start_time = time.time() with open(filename, "r") as file: reader = csv.DictReader(file) num_rows = sum(1 for…

Python

2 min read

Python — Counting rows and columns in large csv or txt
Python — Counting rows and columns in large csv or txt
Python

2 min read


Sep 23, 2021

Rainbow

Rainbow Roma 19/07/2021 Piazza Guglielmo Marconi

Rainbow

1 min read

Rainbow
Rainbow
Rainbow

1 min read

giulio isernia

giulio isernia

965 Followers

CRM and Open Source Specialist. Not so serious as my Bio. Web observer and listener. Internet=knowledge ... knowledge=freedom.

Following
  • Sorare

    Sorare

  • Patricia Baronowski-Schneider

    Patricia Baronowski-Schneider

  • Fabio Pandiscia

    Fabio Pandiscia

  • Rudy Bandiera

    Rudy Bandiera

  • Gillian Duce

    Gillian Duce

See all (922)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech