Skip to content

Instantly share code, notes, and snippets.

View gautamk's full-sized avatar

Gautam gautamk

  • Block | Meta | Appdynamics | Cisco | Amazon | University of Washington
  • Pale Blue Dot
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gautamk on github.
  • I am gautamk (https://keybase.io/gautamk) on keybase.
  • I have a public key whose fingerprint is D4D5 FA08 BA6B 2E25 502C 7B4A E080 51F8 245D D05F

To claim this, I am signing this object:

@gautamk
gautamk / lowecase.py
Created December 27, 2015 05:04
Convert the first line of all csv files in the current directory to lowercase
import glob
for filename in glob.iglob("*.csv"):
firstline = None
rest = None
with open(filename, 'r') as f:
firstline = f.readline().lower()
rest = f.read()
with open(filename,'w') as f:
f.writelines([firstline])
f.write(rest)