Skip to content
Snippets Groups Projects
Commit ffc3373b authored by Steffen Remus's avatar Steffen Remus
Browse files

Plot frequency against rank on log-log axes

parent a6fc7253
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,7 @@ def main(args):
names=('word', 'word_frequency'))
df['rank'] = df['word_frequency'].rank(ascending=False,
method='max')
ax = df.plot.scatter(x='word_frequency',
y='rank', loglog=True,
figsize=[12, 6],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment