Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pmall
app_OP
Commits
0390a050
Commit
0390a050
authored
Sep 21, 2020
by
Samuël Weber
Browse files
replace pd.np to np
parent
8c6ff868
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/app_results.py
View file @
0390a050
...
...
@@ -499,11 +499,11 @@ def update_ts_graph(stations, species, sources):
if
len
(
dfdt
.
columns
)
==
2
:
print
(
"TS: Only date and station"
)
return
returnError
dfdt
[
"labels"
]
=
pd
.
np
.
nan
dfdt
[
"labels"
]
=
np
.
nan
stations
=
dfdt
[
"Station"
].
unique
()
# species = dfdt.columns
dfdt
[
"labels"
].
fillna
(
value
=
pd
.
np
.
nan
,
inplace
=
True
)
dfdt
[
"labels"
].
fillna
(
value
=
np
.
nan
,
inplace
=
True
)
# should never happen... but just in case
if
"Date"
not
in
dfdt
.
columns
:
...
...
@@ -821,7 +821,7 @@ def update_concentration_graph(sources, stations):
conn
.
close
()
d
=
d
/
d
.
xs
(
"PM10"
,
level
=
"Specie"
)
d
=
d
.
reset_index
()
# d.replace({0:
pd.
np.nan}, inplace=True)
# d.replace({0: np.nan}, inplace=True)
for
s
in
sources
:
data
.
append
(
go
.
Box
(
...
...
@@ -1061,7 +1061,7 @@ def update_uncertainty_graph_norm(sources, species, stations):
traces
.
append
(
go
.
Box
(
x
=
dftmpBS
.
loc
[:,
"Station"
],
y
=
[
pd
.
np
.
nan
],
y
=
[
np
.
nan
],
name
=
"No normalized DISP"
)
)
...
...
@@ -1628,8 +1628,8 @@ def update_op_contribution_ts_graph(stations, species, plot_type, stationts, est
else
:
estimators
=
{
"mean"
:
pd
.
np
.
nanmean
,
"median"
:
pd
.
np
.
nanmedian
"mean"
:
np
.
nanmean
,
"median"
:
np
.
nanmedian
}
freqs
=
{
"monthly"
:
"M"
,
...
...
Write
Preview
Markdown
is supported
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