Skip to content

Commit

Permalink
change default original tps code location
Browse files Browse the repository at this point in the history
  • Loading branch information
khrlimam committed Mar 25, 2024
1 parent 79dd3e4 commit b4cb6b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions find-remaining-tps.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
import pandas as pd
import argparse

parser = argparse.ArgumentParser(description='Process some integers.')
parser = argparse.ArgumentParser(description='Find missing tps code on downloaded dataset.')
parser.add_argument('name', type=str, help='nama file sumber')
parser.add_argument('dst', type=str, help='Lokasi file disimpan')

if __name__ == '__main__':
args = parser.parse_args()
df = pd.read_csv(args.name, low_memory=False)
df2 = pd.read_csv('original-tps.csv', low_memory=False)
df2 = pd.read_csv('res/original-tps.csv', low_memory=False)
remaining = df2[df2['tps'].isin(df.tps) == False]
remaining.tps.to_csv(args.dst, index=False, header=None)
print('Berhasil, Sisa TPS disimpan di file %s' % args.dst)

0 comments on commit b4cb6b3

Please sign in to comment.