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
Merge requests
!745
Bump dependencies
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bump dependencies
deps
into
develop
Overview
0
Commits
7
Pipelines
5
Changes
12
Merged
David Schäfer
requested to merge
deps
into
develop
1 year ago
Overview
0
Commits
7
Pipelines
5
Changes
3
Expand
👍
0
👎
0
Merge request reports
Compare
version 1
version 4
a01f033c
1 year ago
version 3
6a45ceeb
1 year ago
version 2
d7bf06fa
1 year ago
version 1
2a443b3c
1 year ago
develop (base)
and
version 2
latest version
01a68539
7 commits,
1 year ago
version 4
a01f033c
6 commits,
1 year ago
version 3
6a45ceeb
5 commits,
1 year ago
version 2
d7bf06fa
4 commits,
1 year ago
version 1
2a443b3c
2 commits,
1 year ago
Show latest version
3 files
+
7
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
saqc/core/history.py
+
4
−
2
Options
@@ -11,7 +11,7 @@ from typing import Any, Callable, Dict, List, Tuple
import
numpy
as
np
import
pandas
as
pd
from
pandas.api.types
import
is_categorical_dtype
,
is_float_dtype
from
pandas.api.types
import
is_float_dtype
from
saqc
import
UNFLAGGED
@@ -526,7 +526,9 @@ class History:
raise
TypeError
(
f
"
value must be of type pd.Series, got type
{
type
(
obj
).
__name__
}
"
)
if
not
is_float_dtype
(
obj
.
dtype
)
and
not
is_categorical_dtype
(
obj
.
dtype
):
if
not
is_float_dtype
(
obj
.
dtype
)
and
not
isinstance
(
obj
.
dtype
,
pd
.
CategoricalDtype
):
raise
ValueError
(
"
dtype must be float or categorical
"
)
return
obj
Loading