Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
7
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Commits
8bea50e3
Commit
8bea50e3
authored
2 years ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
rm more unused functions in tools.py
parent
5a71dc4c
No related branches found
Branches containing commit
No related tags found
1 merge request
!462
More tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
saqc/lib/tools.py
+0
-25
0 additions, 25 deletions
saqc/lib/tools.py
with
0 additions
and
25 deletions
saqc/lib/tools.py
+
0
−
25
View file @
8bea50e3
...
...
@@ -56,19 +56,6 @@ def squeezeSequence(value: Sequence[T]) -> Union[T, Sequence[T]]:
return
value
def
inferFrequency
(
data
:
pd
.
Series
)
->
pd
.
DateOffset
:
return
pd
.
tseries
.
frequencies
.
to_offset
(
pd
.
infer_freq
(
data
.
index
))
def
offset2seconds
(
offset
):
"""
Function returns total seconds upon
"
offset like input
:param offset: offset string or pandas offset object.
"""
return
pd
.
Timedelta
.
total_seconds
(
pd
.
Timedelta
(
offset
))
def
periodicMask
(
dtindex
,
season_start
,
season_end
,
include_bounds
):
"""
This function generates date-periodic/seasonal masks from an index passed.
...
...
@@ -186,18 +173,6 @@ def periodicMask(dtindex, season_start, season_end, include_bounds):
return
out
def
assertDictOfSeries
(
df
:
Any
,
argname
:
str
=
"
arg
"
)
->
None
:
if
not
isinstance
(
df
,
dios
.
DictOfSeries
):
raise
TypeError
(
f
"
{
argname
}
must be of type dios.DictOfSeries,
{
type
(
df
)
}
was given
"
)
def
assertSeries
(
srs
:
Any
,
argname
:
str
=
"
arg
"
)
->
None
:
if
not
isinstance
(
srs
,
pd
.
Series
):
raise
TypeError
(
f
"
{
argname
}
must be of type pd.Series,
{
type
(
srs
)
}
was given
"
)
@nb.jit
(
nopython
=
True
,
cache
=
True
)
def
otherIndex
(
values
:
np
.
ndarray
,
start
:
int
=
0
)
->
int
:
"""
...
...
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