Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# DO NOT MODIFY THIS CELL OR THE SEED # THIS CELL IMPORTS ALL THE LIBRARIES YOU NEED!!! np.random.seed(0) fake = Faker() Faker.seed(0) def part2_step1():

# DO NOT MODIFY THIS CELL OR THE SEED

# THIS CELL IMPORTS ALL THE LIBRARIES YOU NEED!!!

np.random.seed(0)

fake = Faker()

Faker.seed(0)

def part2_step1():

# ---- DO NOT CHANGE

np.random.seed(0)

fake = Faker()

Faker.seed(0)

# ---- DO NOT CHANGE

# BEGIN SOLUTION

pass

# END SOLUTION

def part2_step2():

# ---- DO NOT CHANGE

np.random.seed(0)

# ---- DO NOT CHANGE

# BEGIN SOLUTION

pass

# END SOLUTION

def part2_step3(df2_scores):

# BEGIN SOLUTION

pass

# END SOLUTION

def part2_step4(df2_students, df2_scores, ):

# BEGIN SOLUTION

pass

# END SOLUTION

def part2_step5():

# BEGIN SOLUTION

pass

# END SOLUTION

def part2_step6():

# BEGIN SOLUTION

pass

# END SOLUTION

TEST CASES TO PASS:

@weight(3)

@visibility('visible')

@number("part2_step01")

def test_part2_step01(self):

df2_students = self.assignment6.part2_step1()

df2_from_file = pd.read_csv("part2_step1.csv")

self.assertEqual(df2_from_file.values.tolist(), df2_students.values.tolist())

@weight(3)

@visibility('visible')

@number("part2_step02")

def test_part2_step02(self):

df2_scores = self.assignment6.part2_step2()

df2_from_file = pd.read_csv("part2_step2.csv")

self.assertEqual(df2_scores.values.tolist(), df2_from_file.values.tolist())

@weight(3)

@visibility('visible')

@number("part2_step03")

def test_part2_step03(self):

df2_scores = self.assignment6.part2_step2()

df2_compare = self.assignment6.part2_step3(df2_scores)

df2_from_file = pd.read_csv("part2_step3.csv", index_col=0)

self.assertEqual(df2_from_file.values.tolist(), df2_compare.values.tolist())

@weight(3)

@visibility('visible')

@number("part2_step04")

def test_part2_step04(self):

df2_scores = self.assignment6.part2_step2()

df2_students = self.assignment6.part2_step1()

df2_score_sheet = self.assignment6.part2_step4(df2_students, df2_scores)

df2_from_file = pd.read_csv("part2_step4.csv")

self.assertEqual(df2_from_file.values.tolist(), df2_score_sheet.values.tolist())

@weight(3)

@visibility('visible')

@number("part2_step05")

def test_part2_step05(self):

df2_ai = self.assignment6.part2_step5()

df2_from_file = pd.read_csv("part2_step5.csv", index_col=0)

self.assertEqual(df2_from_file.values.tolist(), df2_ai.values.tolist())

@weight(3)

@visibility('visible')

@number("part2_step06")

def test_part2_step06(self):

df_grade = self.assignment6.part2_step6()

df2_from_file = pd.read_csv("part2_step6.csv", index_col=0)

self.assertEqual(df2_from_file.values.tolist(), df_grade.values.tolist())

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Influxdb Database A Comprehensive Guide To Learn Influxdb Database

Authors: Cybellium Ltd ,Kris Hermans

1st Edition

B0CNGGWL7B, 979-8867766450

More Books

Students also viewed these Databases questions

Question

Give an example of goal-setting that is not technique related.

Answered: 1 week ago