setup.py 329 B

1234567891011121314
  1. import pandas as pd
  2. # Update input csv files
  3. files = ["input-1.csv", "input-2.csv"]
  4. n = 0
  5. for file in files:
  6. contents = [(f"u{n+1}", f"user{n+1}"), (f"u{n+2}", f"user{n+2}")]
  7. output = pd.DataFrame(contents, columns=["userid", "name"])
  8. print(output)
  9. output.to_csv(file, header=True, index=False)
  10. n = n + 2