Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Russell Jarvis
ScienceAccess
Commits
4ee2704f
Commit
4ee2704f
authored
Dec 10, 2021
by
Russell Jarvis
💬
Browse files
update
parent
3bb3fb9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app.py
View file @
4ee2704f
...
...
@@ -87,6 +87,11 @@ def dontcleankeepdirty(rd_df):
return
rd_df
rd_df
=
dontcleankeepdirty
(
rd_df
)
def
cleankeepdirty
(
rd_df
):
# previously I deleted negative values, but keeping the nonesensical measurements illustrates our point.
#rd_df = rd_df.loc[sample(list(rd_df.index), 999)]
rd_df
=
rd_df
[(
rd_df
[
"Reading_Level"
]
<
55
)]
return
rd_df
rd_df
[
"Origin"
]
=
[
"ReadabilityScienceDeclining"
for
i
in
rd_df
[
"Origin"
]]
...
...
@@ -269,6 +274,9 @@ def main():
ar
,
author_name
,
scraped_labels
,
author_score
,
art_df
)
df_author
=
df_author
[(
df_author
[
"Reading_Level"
]
<
55
)]
genre
=
[]
genre
.
append
(
"scatter plots"
)
genre
.
append
(
"tables"
)
...
...
@@ -521,7 +529,10 @@ def main():
st
.
markdown
(
"# Abstracts:"
)
st
.
write
(
df_author
)
df_author_new
=
pd
.
concat
([
df_author
,
df_author_new
])
df_author_new
=
df_author_new
[(
df_author_new
[
"Reading_Level"
]
<
55
)]
st
.
markdown
(
"# Both:"
)
st
.
write
(
df_author_new
)
#show_links == "Yes"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment