We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 552df33 commit c85cd0aCopy full SHA for c85cd0a
plotlydash_flask_tutorial/plotlydash/data.py
@@ -1,4 +1,6 @@
1
+"""Prepare data for Plotly Dash."""
2
import pandas as pd
3
+import numpy as np
4
5
6
def create_dataframe():
@@ -9,4 +11,4 @@ def create_dataframe():
9
11
num_complaints = df['complaint_type'].value_counts()
10
12
to_remove = num_complaints[num_complaints <= 30].index
13
df.replace(to_remove, np.nan, inplace=True)
- return df
14
+ return df
0 commit comments