Due to we used function has_header from csv package. If the input CSV file for read_student_file.py is a single line CSV file, has_header will crash since there is no comparison and the function cannot recognize if there is a header or not. An exception handling supposes to work when the user imports a CSV file that only has a single line.
Steps to Reproduce Issue
Try to run any grouping method with a single line CSV file as input file.
Description of the Issue
Add Detailed Comment with More Information
Due to we used function
has_header
fromcsv
package. If the input CSV file forread_student_file.py
is a single line CSV file,has_header
will crash since there is no comparison and the function cannot recognize if there is a header or not. An exception handling supposes to work when the user imports a CSV file that only has a single line.Steps to Reproduce Issue
Try to run any grouping method with a single line CSV file as input file.
Assigned Developers
@Lancasterwu