Jul-11-2020, 08:52 AM
(Jul-21-2019, 11:33 PM)scidam Wrote: Take a look at Pandas. Using Pandas your pseudo-code would be as follows:
import pandas as pd data = pd.read_csv('your_source_file_name') for g, d in data.groupby('Item').groups.items(): data.loc[d].to_csv("{}".format(str(g)))I didn't test the code above, probably you will need to slightly modify it.
It actually just replaces the old data with new one... I wish to add the new data below the previous data.