Can anyone check for me what's wrong with my code.
I want it merge two csv file into one csv file.
I hve tried to google and I still cant merge it, it will create new file but will show nothing inside. https://stackoverflow.com/a/16266144/7624469
a.csv
ID User
A1 Fi
A2 Ki
b.csv
ID User
A4 Fsdi
A5 Kisd
The output that I want will look like this
combined.csv
ID User
A1 Fi
A2 Ki
A4 Fsdi
A5 Kisd
test.py
import pandas, sys
import pandas as pd
a = pd.read_csv("C:/JIRA Excel File/a.csv")
b = pd.read_csv("C:/JIRA Excel File/b.csv")
merged = a.merge(b, on='ID')
merged.to_csv('C:/JIRA Excel File/result.csv', index=False)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…