Question: a Create a function called df_info that will: * Import any CSV-based dataset with the path passed in as a function parameter * Tterate through

a Create a function called df_info that will: *
a Create a function called df_info that will: * Import any CSV-based dataset with the path passed in as a function parameter * Tterate through the column names and print them out one-at-a-time including their data type (HINT: use .dtype) and number of values (HINT: use len()). It should look something like this: * bmi: float4, 1338 * children: int4, 1333 * smoker! object, 1338 * region: object, 1338 * charges: float4, 1338 * Output the dataset as a Pandas DataFrame Use the provided insurance.csv dataset to test the function. Print out the first five records. FEEDBACK 14/40 (35.0%) x Some of the outputs that should have printed out from your function were not found; Did not find all the following values in the same row: age, int64, 1338; Did not find all the following values in the same row: sex, object, 1538; Did not find all the following values in the same row: bmi, float64, 1338; Did not find all the following values in the same row: children, int64, 1333; Did not find all the following values in the same row: smoker, object, 1338; Did not find all the following values in the same row: region, object, 1338; Did not find all the following values in the same row: charges, float4, 1338; Did not find the dataframe named \"df\" in your code; No dataframes were found in your code at all. Did you create and call your function correctly?; Some of the outputs that should have printed out from your dataframe were not found; Did not find all the following values in the same row: 0, 19, female, 27.900, 0, yes, southwest, 16824.92400; Did not find all the following values in the same row: 1, 18, male, 33.770, 1, no, southeast, 1725.55230; Did not find all the following values in the same row: 2, 28, male, 33.000, 3, no, southeast, 4449.46200; Did not find all the following values in the same row: 3, 33, male, 22.705, 0, no, northwest, 21984.47061; Did not find all the following values in the same row: 4, 32, male, 28.880, 0, no, northwest, 3866.85520 Feedback: Some of the outputs that should have printed out from your function were not found; Did not find all the following values in the same row: age, int64, 1338; Did not find all the following values in the same row: sex, object, 1338; Did not find all the following values in the same row: bmi, float4, 1333; Did not find all the following values in the same row: children, int64, 1333; Did not find all the following values in the same row: smoker, object, 1338; Did not find all the following values in the same row: region, object, 1338; Did not find all the following values in the same row: charges, floated, 1338; Did not find the dataframe named \"df in your code; No dataframes were found in your code at all. Did you create and call your function correctly?; Some of the outputs that should have printed out from your dataframe were not found; Did not find all the following values in the same row: 0, 19, female, 27.900, 0, yes, southwest, 16884.92400; Did not find all the following values in the same row: 1, 18, male, 33.770, 1, no, southeast, 1725.55230; Did not find all the following values in the same row: 2, 28, male, 33.000, 3, no, southeast, 4449.46200; Did not find all the following values in the same row: 3, 33, male, 22.705, 0, no, northwest, 21984.47061; Did not find all the following values in the same row: 4, 32, male, 28.8380, 0, no, northwest, 3866.85520 a Upload your .ipynb file here. 1 Bee eee cas crea) Please upload 1 file(s). FEEDBACK 0/0 vw

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!