Python Question! What is the code of this project?
Instructions
The Python script should follow the format of the Template.py example. Specifically, for each of the example files (csv, text, json, and excel) write a separate function for each file type that, when given the file as an argument, imports the data from that file (that is, reads the file in) and assigns it to an appropriate Python data structure (like a data frame, etc) and returns that data structure. When you are done with the assignment, your script, when run, should call all these functions and, as a result, import all of the example files into corresponding Python data structures. Make sure that your function returns a data structure (such as a data frame and NOT a print statement).
Please make sure to:
Properly document the functions
Properly assign arguments to the functions
If you are using any libraries such as pandas or numpy, make sure that when you call the functions from these libraries you use all relevant arguments--for example, you should not just use pd.read_csv('file.csv'), but rather all necessary arguments of that function
Avoid excessive printing
Ensure that, as the requirement states above, import each file type's content into a corresponding Python data structure
Utilize the if __name__ == '__main__': clause appropriately submit a proper Python script (.py file) as your one and only answer to the assignment
Submit a proper Python script (.py file) as your one and only answer to the assignment.