Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HYDWS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Indu
HYDWS
Commits
b014e385
Commit
b014e385
authored
1 year ago
by
Nicolas Schmid
Browse files
Options
Downloads
Patches
Plain Diff
fix: add fix so that hydraulic datetime stamps are returned as IO Time string
parent
ad8384a4
No related branches found
Branches containing commit
Tags
v1.0.1
Tags containing commit
2 merge requests
!36
fix: add fix so that hydraulic datetime stamps are returned as IO Time string
,
!35
fix: add fix so that hydraulic datetime stamps are returned as IO Time string
Pipeline
#2873
passed
1 year ago
Stage: codestyle
Stage: test
Changes
1
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hydws/utils.py
+4
-0
4 additions, 0 deletions
hydws/utils.py
with
4 additions
and
0 deletions
hydws/utils.py
+
4
−
0
View file @
b014e385
...
...
@@ -28,6 +28,10 @@ def real_values_to_json(df: pd.DataFrame, drop_cols: list[str] = None) -> str:
df
=
df
.
stack
(
level
=
1
)
if
'
datetime
'
in
df
.
columns
:
df
[
'
datetime
'
]
=
pd
.
to_datetime
(
df
[
'
datetime
'
]).
dt
.
strftime
(
'
%Y-%m-%dT%H:%M:%S
'
)
if
df_not_real
is
not
None
:
result
=
df
.
groupby
(
level
=
0
)
\
.
apply
(
lambda
x
:
x
.
droplevel
(
0
).
to_dict
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment