Home /
Expert Answers /
Computer Science /
1-loading-files-with-pandas-and-formats-at-each-of-these-files-and-use-pd-read-csv-or-pd-re-pa216
(Solved):
1. Loading files with Pandas and formats. at each of these files and use pd. read_csv() or pd. re ...
1. Loading files with Pandas and formats. at each of these files and use pd. read_csv() or pd. read_excel() to load these data so that they resemble the following: Question 1(a) \{points: 1\( \} \) Load in the file named wine_a.csv using the appropriate verb pd.read_csv() or pd. read_excel() and arguments and save it as an object named df_1a. 2] : df_1a = pd.read_csv('data/wine_a.c5v', nraws=5) printidf_1a)
Question 1(b) (points: 1\} Load in the file named wine_b.csv using the appropriate verb pd. read_csv() or pd. read_excel() and arguments and save it as an object named df_lb. df_1b = None # your code here raise NotimplementedError No Answer - remove if you provide an answer
\{points: 2\} Load in the file named wine_e.csv using the appropriate verb pd. read_csv( ) or pd. read_excel( ) and arguments and save it as an object named df_1e. []: df_le = None # your code here raise NotimplenentedError # No Answer - remove if you provide an answer [ ]: assert 'df_1e' in locals(), "Your answer should be named 'df_1e'" * Note that this test has been hidden intentionally. * It will provide no feedback as to the correctness of your answers. # Thus, it is up to you to decide if your answer is sufficiently correct. Question 1(f) \{points: 1) Load in the file named wine_f.txt using the appropriate verb pd. read_csv() or pd. read_excel() and arguments and save it as an object named df_1f. [ ]: df_1f = None # your code here raise NotimplementedError # No Answer - remove if you provide an answer [ ]: t.test_1f(df_1f\} Question 1(g) \{points: 1\( \} \) Load in the file named wine_g.xlsx using the appropriate verb pd. read_csv() or pd. read_excel() and arguments and save it as an object named df_1g. You will need to look at the file which you can do by right clicking the file in the toolbar on the left of the screen and clicking on Downioad. [ ]: df_1g= None * your code here raise NotImplenentedError # No Answer - remove if you provide an answer
Question \( 1(\mathrm{~h}) \) \{points: 1\} Load in the file named wine_h.xlsx using the appropriate verb pd. read_csv() or pd. read_excel() and arguments and save it as an object named df_1h. You will need to look at the file which you can do by right clicking the file in the toolbar on the left of the screen and clicking on Downioad. 1: df_1h = None ? your code here raise NotImplementedError #No Answer - remove if you provide an answer ]: t.test_1h(df_1h) Question 1(i) \{points: 1\} Read the 'Move to Canada' .csv file using pd.read_csv() and store the dataframe as the variable df. ]: df \( = \) None ? your code here raise NotImplementedError # No Answer - remove if you provide an answer 1: t.test_1i(df)