Cells 1-2
Cell #1
Terms used throughout the code are defined in this cell. The terms size, name, year, school, students, and questions are defined.
"School" gives the name of the school
"Students" gives the first and last names of the students
"size" gives the area of the cells occupied by data in the excel sheet
"shape" gives (# of rows, # of columns)
"list_Students" is the same command as "Students"
"list_Questions" is the same command as "Questions"
"clean_Dupli_NaN(vector):" erases duplicate survey responses from the same person.
Cell #2
Different packages are imported in and renamed.
"plt" means matplotlib.pyplot is being used. matplotlib.pyplot creates plots with the data
"np" means numpy is being used. Numpy is used for multidimensional arrays of numbers.
"pd" means pandas is being used. Pandas structures data and its labels.
"coll" means collections is being used.
Data frames are also created using the Confidence survey data. When the command "ConfidenceS#" is typed, the code creates a data frame with the survey of the corresponding year. Adding ".shape" to the end of the command gives the (# of rows, # of columns) of the survey selected.
Terms used throughout the code are defined in this cell. The terms size, name, year, school, students, and questions are defined.
"School" gives the name of the school
"Students" gives the first and last names of the students
"size" gives the area of the cells occupied by data in the excel sheet
"shape" gives (# of rows, # of columns)
"list_Students" is the same command as "Students"
"list_Questions" is the same command as "Questions"
"clean_Dupli_NaN(vector):" erases duplicate survey responses from the same person.
Cell #2
Different packages are imported in and renamed.
"plt" means matplotlib.pyplot is being used. matplotlib.pyplot creates plots with the data
"np" means numpy is being used. Numpy is used for multidimensional arrays of numbers.
"pd" means pandas is being used. Pandas structures data and its labels.
"coll" means collections is being used.
Data frames are also created using the Confidence survey data. When the command "ConfidenceS#" is typed, the code creates a data frame with the survey of the corresponding year. Adding ".shape" to the end of the command gives the (# of rows, # of columns) of the survey selected.
Comments
Post a Comment