Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2be37d5

Browse files
authored
Update lab2.py
1 parent45845a9 commit2be37d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎Module9/lab2.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,18 @@ class IrisStats:
2727
def__init__(self,file_path):
2828
self.sepal_length_column=0
2929
self.petal_length_column=2
30+
self.file_path=file_path
3031
self.iris_data=None# this is set in each stats function
3132

3233
defget_avg_petal_length(self):
3334
# TODO1: finish this function
34-
self.iris_data=IrisReader(file_path).open()
35+
self.iris_data=IrisReader(self.file_path).open()
3536
ifself.iris_dataisnotNone:
3637
pass
3738

3839
defget_avg_sepal_length_per_class(self):
3940
# TODO2: finish this function
40-
self.iris_data=IrisReader(file_path).open()
41+
self.iris_data=IrisReader(self.file_path).open()
4142
ifself.iris_dataisnotNone:
4243
pass
4344

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp