Skip to content

Commit b9b564b

Browse files
committed
ex 05.2 fixed
1 parent 81e55fc commit b9b564b

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pandas as pd
2+
3+
data = pd.read_csv('.learn/assets/pokemon_data.csv')
4+
5+
print(data.iloc[133,6])

.learn/exercises/05.2-iloc/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ def test_output():
1919
def test_expected_output(capsys):
2020
import app
2121
captured = capsys.readouterr()
22-
assert captured.out == ""
22+
assert captured.out == "35\n"

.learn/vscode_queue.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"name":"initializing","time":38074642957.596},{"name":"reset","time":38074642999.346},{"name":"configuration_loaded","time":38075662486.981},{"name":"start_exercise","time":38079077551.987,"data":"05.1-from_dict"}]
1+
[{"name":"initializing","time":40914654350.121},{"name":"reset","time":40914654388.121},{"name":"configuration_loaded","time":40915672409.337},{"name":"start_exercise","time":40944506173.949,"data":"01-terminal"},{"name":"start_exercise","time":40952522646.655,"data":"05.2-iloc"}]

app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pandas as pd
2+
3+
data = pd.read_csv('.learn/assets/pokemon_data.csv')
4+
5+
print(data.iloc[133,6])

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ def pytest_generate_tests(metafunc):
2424
except AttributeError:
2525
metafunc.parametrize("app",[cached_app])
2626
if 'configuration' in metafunc.fixturenames:
27-
metafunc.parametrize("configuration", [json.loads('{"port":3000,"address":"https://kiddopro-pythonpandastu-mcial2n3lf7.ws-us41.gitpod.io","editor":{"mode":"preview","agent":"gitpod","version":"1.0.72"},"dirPath":"./.learn","configPath":"learn.json","outputPath":".learn/dist","publicPath":"/preview","publicUrl":"https://3000-kiddopro-pythonpandastu-mcial2n3lf7.ws-us41.gitpod.io","language":"auto","grading":"incremental","exercisesPath":".learn/exercises","webpackTemplate":null,"disableGrading":false,"disabledActions":["build"],"actions":[],"entries":{"html":"index.html","vanillajs":"index.js","react":"app.jsx","node":"app.js","python3":"app.py","java":"app.java"},"preview":"https://github.com/4GeeksAcademy/python-pandas-tutorial/blob/main/.learn/assets/pandas-preview.jpeg?raw=true","difficulty":"beginner","duration":3,"description":"Learn the basics and become comfortable using pandas for manipulating machine learning datasets .","title":"Pandas for Machine Learning","slug":"pandas-for-machine-learning","session":6793656476394450000,"translations":[]}')])
27+
metafunc.parametrize("configuration", [json.loads('{"port":3000,"address":"https://kiddopro-pythonpandastu-uq8bbm9ntcp.ws-us42.gitpod.io","editor":{"mode":"preview","agent":"gitpod","version":"1.0.72"},"dirPath":"./.learn","configPath":"learn.json","outputPath":".learn/dist","publicPath":"/preview","publicUrl":"https://3000-kiddopro-pythonpandastu-uq8bbm9ntcp.ws-us42.gitpod.io","language":"auto","grading":"incremental","exercisesPath":".learn/exercises","webpackTemplate":null,"disableGrading":false,"disabledActions":["build"],"actions":[],"entries":{"html":"index.html","vanillajs":"index.js","react":"app.jsx","node":"app.js","python3":"app.py","java":"app.java"},"preview":"https://github.com/4GeeksAcademy/python-pandas-tutorial/blob/main/.learn/assets/pandas-preview.jpeg?raw=true","difficulty":"beginner","duration":3,"description":"Learn the basics and become comfortable using pandas for manipulating machine learning datasets .","title":"Pandas for Machine Learning","slug":"pandas-for-machine-learning","session":3062180033712294000,"translations":[]}')])

0 commit comments

Comments
 (0)