bad_lines = []
with open(fname, 'rb') as f:
    header = f.readline()
for j, l in enumerate(f):
    country, count, sales = l.split()
try:
    sales_count = int(sales)
except ValueError:
    sales_count = 'NaN'
bad_lines.append(j)
print(country, count, sales_count)
cleaning big data using python