#!/usr/bin/python
from __future__ import absolute_import, division, print_function
import csv
from itertools import imap
from operator import itemgetter


def main():
    import pandas
    df = pandas.read_csv('/srv/off/html/data/en.openfoodfacts.org.products.csv', sep='\t', low_memory=False)
    colnames = ['code','product_name','quantity','brands','nutriscore_grade','nova_group','ecoscore_grade']
    df.to_csv('/srv/off/html/data/offline/en.openfoodfacts.org.products.small.csv', columns = colnames,sep='\t',index=False)

if __name__ == '__main__':
    main()

@@ -402,16 +402,74 @@
 %0A    df.
+rename(columns=%7B'nutriscore_grade': 'nutrition_grade_fr'%7D.
 to_csv('

Update generate_dump_for_offline_apps_off.py