Question: Error code filenotfound [ 2 2 ] : import pandas as pd def proportion _ of _ education ( ) : file 1 = open

Error code filenotfound
[22]: import pandas as pd
def proportion_of_education():
file1=open('r',"/Users/reneewalden/Desktop/NISPUF17.csv")
df=pd.read_csv('r',"/Users/reneewalden/Desktop/NISPUF17.csv")
education_counts 'EDUC1']* value_counts ()
total=len (df)
education_proportions=education_counts/total
result less than high school": education_proportions [1],
"high school": education_proportions [2],
"more than high school but no college": education_proportions [3],
"college": education_proportions [4]}
return result
 Error code filenotfound [22]: import pandas as pd def proportion_of_education(): file1=open('r',"/Users/reneewalden/Desktop/NISPUF17.csv")

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 Databases Questions!