merge_pandas.py 216 B

1234567
  1. import pandas
  2. def merge_lines(file_out):
  3. df = pandas.read_csv(file_out, header = 0, delimiter=";")
  4. df['Text'] = df.groupby(['X','Y'])['TEXT'].transform('sum')
  5. df.drop_duplicates()
  6. df.to_csv(file_out)