first commit
Browse files- app.py +44 -0
- q_and_a.csv +12 -0
- requirements.txt +2 -0
app.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# srcs/streamlit_app/app.py
|
| 3 |
+
import streamlit as st
|
| 4 |
+
import pandas as pd
|
| 5 |
+
|
| 6 |
+
def main():
|
| 7 |
+
st.title('Search')
|
| 8 |
+
search = st.text_input('Enter search words:')
|
| 9 |
+
|
| 10 |
+
if search != '':
|
| 11 |
+
df = pd.read_csv('q_and_a.csv', index_col=0)
|
| 12 |
+
ans = df[df['0'].str.contains(search)]
|
| 13 |
+
|
| 14 |
+
for col, row in ans.iterrows():
|
| 15 |
+
st.subheader(row[0])
|
| 16 |
+
st.caption(row[1])
|
| 17 |
+
# st.table(ans)
|
| 18 |
+
|
| 19 |
+
if __name__ == '__main__':
|
| 20 |
+
main()
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
# userName = st.text_input('Enter Github Username')
|
| 27 |
+
|
| 28 |
+
# if userName != '':
|
| 29 |
+
# try:
|
| 30 |
+
# info, repo_info = getData(userName)
|
| 31 |
+
|
| 32 |
+
# for key , value in info.items():
|
| 33 |
+
# if key != 'image_url':
|
| 34 |
+
# st.subheader(
|
| 35 |
+
# '''
|
| 36 |
+
# {} : {}
|
| 37 |
+
# '''.format(key, value)
|
| 38 |
+
# )
|
| 39 |
+
# else:
|
| 40 |
+
# st.image(value)
|
| 41 |
+
# st.subheader(" Recent Repositories")
|
| 42 |
+
# st.table(repo_info)
|
| 43 |
+
# except:
|
| 44 |
+
# st.subheader("User doesn't exist")
|
q_and_a.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,0,1
|
| 2 |
+
0,Arrange the name of the technologies in accordance with the companies where they were created. ,"Yahoo - Pig
|
| 3 |
+
|
| 4 |
+
Google - MapReduce
|
| 5 |
+
|
| 6 |
+
Facebook - Hive"
|
| 7 |
+
1,What is the utility that allows us to create and run MapReduce jobs with any language or executable as the mapper or the reducer in Hadoop?,Hadoop Streaming
|
| 8 |
+
2,Which of these file formats are big data formats optimized for storage on Hadoop? (select all that apply) ,"Optimized Row Columnar (ORC)
|
| 9 |
+
Avro
|
| 10 |
+
Parquet"
|
| 11 |
+
3,Which of the following is a big data platform for analyzing unstructured data? ,Apache Pig
|
| 12 |
+
4, What is the main difference between Apache Pig and Apache Hive? ,Apache Pig is faster than Apache Hive
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
streamlit
|
| 2 |
+
pandas
|