6/01/17 Notes (fixing problems with creating charts for the Confidence survey information)
- Still trying to fix the error that says my columns don’t exist in cell 7
- Tried checking if a different year worked, not only did this not work, I also got a new error in cell 4 saying the value had unexpected elements.
- Tried running the cell after fixing the issues with cell 4 to see if that affected anything. It worked for every year!
- I added all the column headers to cell 7 and it now displays a chart with all the correct information (except for the problem with years 15-17 mentioned in the “Error in cell 4” section).
- Error in cell 4
- I tried typing out the command for the column names of each year to be changed, this did not work.
- I retried using ConfidenceS14 (this one worked originally) instead of ConfidenceS15. This did not work.
- The error claims that only 18 elements are expected, yet it is receiving 21 elements but, I counted the # of columns in the excel spreadsheet and there are 21 columns. I don’t know where it’s getting the number 18.
- I counted the number of labels I typed into the code and there were 16…
- I retyped the labels and made sure I had all 21. This did not work.
- I noticed that when the duplicates are deleted in cell three, ConfidenceS15 now only had 18 columns. Years 15-17 all had only 18 columns, year 14 was the only year that has all 21 columns. But, cell 4 still only expects ConfidenceS14 to have 18 elements.
- I checked the original code and it does the same thing with the duplicates.
- I looked at the original code where the questions, students, or name of school was displayed. I read through the questions, and “gender,” “grade,” and “length” did not appear.
- I deleted “Grade,” “Gender,” and “Length” from each column name. When I tried to get the shape of ConfidenceS14 I got an error that said it expected 21 elements, and but it only got 18 elements.
- I readded “Grade,” “Gender,” and “Length” to only “ConfidenceS14.” It worked (for ConfidenceS14 at least)
- Deleting “Grade,” “Gender,” and “Length” for years 15-17 took the error away, but now that information will not appear on the graph.
- The information did not appear because those questions weren’t asked in those years.
- The missing information is on every year of the Attitudes about School Success Survey so I will not display those questions for the Confidence survey. Instead I will add that information on by appending the Attitudes survey to it.
Comments
Post a Comment