Spaces:
Running
Running
raymondEDS
commited on
Commit
·
88ff3a0
1
Parent(s):
49e3aec
Zhu HaoDi homework
Browse files- app/pages/__pycache__/week_4.cpython-311.pyc +0 -0
- app/pages/week_2.py +9 -0
- app/pages/week_4.py +37 -0
app/pages/__pycache__/week_4.cpython-311.pyc
CHANGED
Binary files a/app/pages/__pycache__/week_4.cpython-311.pyc and b/app/pages/__pycache__/week_4.cpython-311.pyc differ
|
|
app/pages/week_2.py
CHANGED
@@ -375,6 +375,15 @@ def show():
|
|
375 |
elif username == "zhu":
|
376 |
st.markdown(f"""
|
377 |
Hello **{username}**, here is your Assignment 2: Python Basics.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
""")
|
379 |
elif username == "WK":
|
380 |
st.markdown(f"""
|
|
|
375 |
elif username == "zhu":
|
376 |
st.markdown(f"""
|
377 |
Hello **{username}**, here is your Assignment 2: Python Basics.
|
378 |
+
1. Import the dataset that you studied last week: https://huggingface.co/datasets/zwn22/NC_Crime
|
379 |
+
2. Create a new notebook and load the dataset
|
380 |
+
3. Explore the dataset by answering the following questions (submit answers in this [Colab Notebook](https://colab.research.google.com/drive/1Q4rgFgPBYyjg0DEQ2ud05shNLNMFDK4l)):
|
381 |
+
- How many rows and columns are there in the dataset?
|
382 |
+
- What are the variables in the dataset?
|
383 |
+
- What is the data type of each variable?
|
384 |
+
- What is the range of each variable?
|
385 |
+
- What is the mean of each variable?
|
386 |
+
4. Think about what research question you want to answer with this dataset.
|
387 |
""")
|
388 |
elif username == "WK":
|
389 |
st.markdown(f"""
|
app/pages/week_4.py
CHANGED
@@ -214,4 +214,41 @@ def show():
|
|
214 |
# Compare results
|
215 |
for word, stem, lemma in zip(words, stemmed, lemmatized):
|
216 |
print(f"Original: {word}, Stemmed: {stem}, Lemmatized: {lemma}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
""")
|
|
|
214 |
# Compare results
|
215 |
for word, stem, lemma in zip(words, stemmed, lemmatized):
|
216 |
print(f"Original: {word}, Stemmed: {stem}, Lemmatized: {lemma}")
|
217 |
+
""")
|
218 |
+
|
219 |
+
username = st.session_state.get("username", "Student")
|
220 |
+
st.header(f"{username}'s Weekly Assignment")
|
221 |
+
|
222 |
+
if username == "manxiii":
|
223 |
+
st.markdown("""
|
224 |
+
Hello **manxiii**, here is your Assignment 2: Python Basics.
|
225 |
+
1. Finish looking for 3 more research papers and add them to your literate review
|
226 |
+
2. Finish literate review for the 2 papers you have already summerized
|
227 |
+
3. Add the plots from the previous week to the dataset section and add a description
|
228 |
+
4. link to your paper here: https://www.overleaf.com/project/68228f4ccb9d18d92c26ba13
|
229 |
+
|
230 |
+
**Due Date:** End of Week 2
|
231 |
+
""")
|
232 |
+
elif username == "zhu":
|
233 |
+
st.markdown("""
|
234 |
+
Hello **zhu**, here is your Assignment 2: Python Basics.
|
235 |
+
""")
|
236 |
+
elif username == "WK":
|
237 |
+
st.markdown("""
|
238 |
+
Hello **WK**, here is your Assignment 2: Python Basics.
|
239 |
+
1. Import the dataset that you studied last week: https://huggingface.co/datasets/Yusuf5/OpenCaselist/tree/main
|
240 |
+
2. Create a new notebook and load the dataset
|
241 |
+
3. Explore the dataset by answering the following questions (submit answers in this [Colab Notebook](https://colab.research.google.com/drive/1LP3R3MrQJ2Mz8ZjPhxgTp9IZAlBE0e1d#scrollTo=e78EtnbQCDKV)):
|
242 |
+
- How many rows and columns are there in the dataset?
|
243 |
+
- What are the variables in the dataset?
|
244 |
+
- What is the data type of each variable?
|
245 |
+
- What is the range of each variable?
|
246 |
+
- What is the mean of each variable?
|
247 |
+
4. Think about what research question you want to answer with this dataset.
|
248 |
+
|
249 |
+
**Due Date:** End of Week 2
|
250 |
+
""")
|
251 |
+
else:
|
252 |
+
st.markdown(f"""
|
253 |
+
Hello **{username}**, here is your Assignment 2: Python Basics. is not yet released. Please message instructor
|
254 |
""")
|