This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clean csv with multiindices | |
from sys import argv | |
# Command line arguments: | |
# original csv file | |
# number of columns to check (optional) | |
with open(argv[1], 'r') as f: | |
if len(argv) > 2: | |
n = int(argv[2]) |