Dec-21-2020, 11:26 PM
Hi
I have a list of employees in various file formats, but they all have the same descriptions for the data,
EmployeeID - this is unique
FirstName
LastName
Telephone
Email
Address
City
State
Country
The formats I have are Excel CSV, txt file and json (employee.csv, employee.txt, employee.json)
What I want to do is have all this in one file (combined_employees)
Questions:
1. I understand dictionaries follow the format of key:value, but I've never worked with multiple dictionaries using the same unique ID (in this case EmployeeID). How would I arrange the data?
2. What's the best way to convert these all into one data set? What it be a list of dictionaries?
I have a list of employees in various file formats, but they all have the same descriptions for the data,
EmployeeID - this is unique
FirstName
LastName
Telephone
Address
City
State
Country
The formats I have are Excel CSV, txt file and json (employee.csv, employee.txt, employee.json)
What I want to do is have all this in one file (combined_employees)
Questions:
1. I understand dictionaries follow the format of key:value, but I've never worked with multiple dictionaries using the same unique ID (in this case EmployeeID). How would I arrange the data?
2. What's the best way to convert these all into one data set? What it be a list of dictionaries?