-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
50 lines (33 loc) · 1.18 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import pandas
# reading test_courses.csv
x_courses = pandas.read_csv("actual_dataset/courses.csv", header=None)
print("Course Id and Course Names")
print(x_courses)
print("\n\n\n")
courses = [list(row) for row in x_courses.values]
# reading test_rooms.csv
x_rooms = pandas.read_csv("actual_dataset/rooms.csv", header=None)
print("Room Name and Capacity")
print(x_rooms)
print("\n\n\n")
rooms = [list(row) for row in x_rooms.values]
# reading test_studentCourse
# course[0][0] == studentCourse[0][2]
x_studentCourse = pandas.read_csv("actual_dataset/studentCourses.csv", header=None)
print("ID , StudentName , Course Code")
print(x_studentCourse)
print("\n\n\n")
studentCourse = [list(row) for row in x_studentCourse.values]
# reading test_studentNames
# studentNames[0][0] == studentCourse[0][1]
x_studentNames = pandas.read_csv("actual_dataset/studentNames.csv", header=0)
print("StudentName")
print(x_studentNames)
print("\n\n\n")
studentNames = [list(row) for row in x_studentNames.values]
# reading test_teachers
x_teachers = pandas.read_csv("actual_dataset/teachers.csv", header=0)
print("TeacherName")
print(x_teachers)
print("\n\n\n")
teachers = [list(row) for row in x_teachers.values]