Now we're ready to calculate each message's readability score, using the following approach: ReadabilityScore = 0.1579 * (PDW)+ 0.0496 * (ASL) + 3.6365 Here: • PDW = Percentage of difficult words not on the Dale-Chall word list. • ASL = Average sentence length The larger the readability score the higher the necessary reading level of the reader would need to be to comprehend its contents. For example, a score of 4.9 or below would be able to be understood by someone at the 4th grade reading level or below, where a score of 9 and above would require a college level reading level. Store the readability score in the column 'readability' in news_df . I news_df category subject message ASL politics Re: The Stage is Being Set Srinivas Suder writes: If the Haitian people's... NaN 1 politics Re: Zionism - racism From: Center for Policy Research

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Using Python

Now we're ready to calculate each message's readability score, using the following approach:
ReadabilityScore
= 0.1579 * (PDW)+0.0496 * (ASL) + 3.6365
Here:
• PDW = Percentage of difficult words not on the Dale-Chall word list.
• ASL = Average sentence length
The larger the readability score the higher the necessary reading level of the reader would need to be to comprehend its
contents. For example, a score of 4.9 or below would be able to be understood by someone at the 4th grade reading level or
below, where a score of 9 and above would require a college level reading level.
Store the readability score in the column 'readability' in news_df .
I news_df
category
subject
message
ASL
politics
Re: The Stage is Being Set
Srinivas Suder writes: If the Haitian people's.. NaN
1
politics
Re: Zionism - racism
From: Center for Policy Research <cpr Subject:. NaN
politics
The Armenians did not form a distinct race.
My question is, given so many separations in t...
NaN
politics Re: As Muslim women and children were being ma...
Come again? The image-conscious Armenians sore... NaN
4
politics
Re: Israel's Expansion II
I have never seen such immaturity among semito...
19.0
18768
religion
Wanted: Moltmann's God in Creation
I'm greatly in need of Jurgen Moltmann's book ... NaN
18769
religion
Re: 666 - MARK OF THE BEAST - NEED INFO
: Marian CATHOLIC high school, outside of chic... NaN
18770
religion
Re: 14 Apr 93 God's Promise in 1 John 1: 7
Human blood sacrifice! Martyrdom of an innocen... NaN
18771
religion
Re: Spreading Christianity (Re: Christian Extr...
Not to be too snide about it, but I think this... NaN
18772
religion
Re: 'Imaginary' Friends - Info and Experiences
Concerniong this thread... Has anyone ever se...
NaN
18731 rows × 4 columns
I # YOUR CODE HERE
news_df.head()
I news_df.shape
I assert news_df.shape
assert np.isclose(news_df.loc[0,'readability'], 4.49, 0.1)
assert round(news_df['readability'].mean(), 2)
(18731, 6)
==
== 4.46
I # Look at output
news_df.head(()
Transcribed Image Text:Now we're ready to calculate each message's readability score, using the following approach: ReadabilityScore = 0.1579 * (PDW)+0.0496 * (ASL) + 3.6365 Here: • PDW = Percentage of difficult words not on the Dale-Chall word list. • ASL = Average sentence length The larger the readability score the higher the necessary reading level of the reader would need to be to comprehend its contents. For example, a score of 4.9 or below would be able to be understood by someone at the 4th grade reading level or below, where a score of 9 and above would require a college level reading level. Store the readability score in the column 'readability' in news_df . I news_df category subject message ASL politics Re: The Stage is Being Set Srinivas Suder writes: If the Haitian people's.. NaN 1 politics Re: Zionism - racism From: Center for Policy Research <cpr Subject:. NaN politics The Armenians did not form a distinct race. My question is, given so many separations in t... NaN politics Re: As Muslim women and children were being ma... Come again? The image-conscious Armenians sore... NaN 4 politics Re: Israel's Expansion II I have never seen such immaturity among semito... 19.0 18768 religion Wanted: Moltmann's God in Creation I'm greatly in need of Jurgen Moltmann's book ... NaN 18769 religion Re: 666 - MARK OF THE BEAST - NEED INFO : Marian CATHOLIC high school, outside of chic... NaN 18770 religion Re: 14 Apr 93 God's Promise in 1 John 1: 7 Human blood sacrifice! Martyrdom of an innocen... NaN 18771 religion Re: Spreading Christianity (Re: Christian Extr... Not to be too snide about it, but I think this... NaN 18772 religion Re: 'Imaginary' Friends - Info and Experiences Concerniong this thread... Has anyone ever se... NaN 18731 rows × 4 columns I # YOUR CODE HERE news_df.head() I news_df.shape I assert news_df.shape assert np.isclose(news_df.loc[0,'readability'], 4.49, 0.1) assert round(news_df['readability'].mean(), 2) (18731, 6) == == 4.46 I # Look at output news_df.head(()
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Troubleshooting
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education