Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
weather
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ramya.r
weather
Commits
be842ac3
Commit
be842ac3
authored
Mar 20, 2023
by
ramya.r
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first
parent
281b53be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
script/core/handlers/weather_connection.py
script/core/handlers/weather_connection.py
+7
-7
No files found.
script/core/handlers/weather_connection.py
View file @
be842ac3
...
@@ -19,37 +19,37 @@ class WeatherReport:
...
@@ -19,37 +19,37 @@ class WeatherReport:
filtered_df
=
df
[
df
[
'Date'
]
==
date
]
filtered_df
=
df
[
df
[
'Date'
]
==
date
]
condition
=
"daily"
condition
=
"daily"
# Temperature
min_temp
=
filtered_df
[
'Temperature (C)'
]
.
min
(
axis
=
0
)
min_temp
=
filtered_df
[
'Temperature (C)'
]
.
min
(
axis
=
0
)
max_temp
=
filtered_df
[
'Temperature (C)'
]
.
max
(
axis
=
0
)
max_temp
=
filtered_df
[
'Temperature (C)'
]
.
max
(
axis
=
0
)
avg_temp
=
filtered_df
[
'Temperature (C)'
]
.
mean
(
axis
=
0
)
avg_temp
=
filtered_df
[
'Temperature (C)'
]
.
mean
(
axis
=
0
)
# Apparent Temperature
min_at
=
filtered_df
[
'Apparent Temperature (C)'
]
.
min
(
axis
=
0
)
min_at
=
filtered_df
[
'Apparent Temperature (C)'
]
.
min
(
axis
=
0
)
max_at
=
filtered_df
[
'Apparent Temperature (C)'
]
.
max
(
axis
=
0
)
max_at
=
filtered_df
[
'Apparent Temperature (C)'
]
.
max
(
axis
=
0
)
avg_at
=
filtered_df
[
'Apparent Temperature (C)'
]
.
mean
(
axis
=
0
)
avg_at
=
filtered_df
[
'Apparent Temperature (C)'
]
.
mean
(
axis
=
0
)
# Humidity
min_hum
=
filtered_df
[
'Humidity'
]
.
min
(
axis
=
0
)
min_hum
=
filtered_df
[
'Humidity'
]
.
min
(
axis
=
0
)
max_hum
=
filtered_df
[
'Humidity'
]
.
max
(
axis
=
0
)
max_hum
=
filtered_df
[
'Humidity'
]
.
max
(
axis
=
0
)
avg_hum
=
filtered_df
[
'Humidity'
]
.
mean
(
axis
=
0
)
avg_hum
=
filtered_df
[
'Humidity'
]
.
mean
(
axis
=
0
)
# Wind Speed
min_ws
=
filtered_df
[
'Wind Speed (km/h)'
]
.
min
(
axis
=
0
)
min_ws
=
filtered_df
[
'Wind Speed (km/h)'
]
.
min
(
axis
=
0
)
max_ws
=
filtered_df
[
'Wind Speed (km/h)'
]
.
max
(
axis
=
0
)
max_ws
=
filtered_df
[
'Wind Speed (km/h)'
]
.
max
(
axis
=
0
)
avg_ws
=
filtered_df
[
'Wind Speed (km/h)'
]
.
mean
(
axis
=
0
)
avg_ws
=
filtered_df
[
'Wind Speed (km/h)'
]
.
mean
(
axis
=
0
)
# Wind Bearing
min_wb
=
filtered_df
[
'Wind Bearing (degrees)'
]
.
min
(
axis
=
0
)
min_wb
=
filtered_df
[
'Wind Bearing (degrees)'
]
.
min
(
axis
=
0
)
max_wb
=
filtered_df
[
'Wind Bearing (degrees)'
]
.
max
(
axis
=
0
)
max_wb
=
filtered_df
[
'Wind Bearing (degrees)'
]
.
max
(
axis
=
0
)
avg_wb
=
filtered_df
[
'Wind Bearing (degrees)'
]
.
mean
(
axis
=
0
)
avg_wb
=
filtered_df
[
'Wind Bearing (degrees)'
]
.
mean
(
axis
=
0
)
# Visibility
min_vis
=
filtered_df
[
'Visibility (km)'
]
.
min
(
axis
=
0
)
min_vis
=
filtered_df
[
'Visibility (km)'
]
.
min
(
axis
=
0
)
max_vis
=
filtered_df
[
'Visibility (km)'
]
.
max
(
axis
=
0
)
max_vis
=
filtered_df
[
'Visibility (km)'
]
.
max
(
axis
=
0
)
avg_vis
=
filtered_df
[
'Visibility (km)'
]
.
mean
(
axis
=
0
)
avg_vis
=
filtered_df
[
'Visibility (km)'
]
.
mean
(
axis
=
0
)
# Pressure
min_pre
=
filtered_df
[
'Pressure (millibars)'
]
.
min
(
axis
=
0
)
min_pre
=
filtered_df
[
'Pressure (millibars)'
]
.
min
(
axis
=
0
)
max_pre
=
filtered_df
[
'Pressure (millibars)'
]
.
max
(
axis
=
0
)
max_pre
=
filtered_df
[
'Pressure (millibars)'
]
.
max
(
axis
=
0
)
avg_pre
=
filtered_df
[
'Pressure (millibars)'
]
.
mean
(
axis
=
0
)
avg_pre
=
filtered_df
[
'Pressure (millibars)'
]
.
mean
(
axis
=
0
)
...
...
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