Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c85cd0a

Browse files
Update data.py
1 parent 552df33 commit c85cd0a

File tree

1 file changed

+3
-1
lines changed
  • plotlydash_flask_tutorial/plotlydash

1 file changed

+3
-1
lines changed

‎plotlydash_flask_tutorial/plotlydash/data.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
"""Prepare data for Plotly Dash."""
12
import pandas as pd
3+
import numpy as np
24

35

46
def create_dataframe():
@@ -9,4 +11,4 @@ def create_dataframe():
911
num_complaints = df['complaint_type'].value_counts()
1012
to_remove = num_complaints[num_complaints <= 30].index
1113
df.replace(to_remove, np.nan, inplace=True)
12-
return df
14+
return df

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /