Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dios
Manage
Activity
Members
Labels
Plan
Issues
11
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
0
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
dios
Commits
9e154aa1
Commit
9e154aa1
authored
5 years ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
make column slicing, include both bounds
parent
07cea992
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!2
Develop
,
!1
complete rework
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dios/dios.py
+5
-4
5 additions, 4 deletions
dios/dios.py
with
5 additions
and
4 deletions
dios/dios.py
+
5
−
4
View file @
9e154aa1
...
...
@@ -8,7 +8,8 @@ from collections import OrderedDict
from
pandas.core.dtypes.common
import
(
is_list_like
,
is_iterator
,
is_number
is_number
,
is_integer
,
)
from
pandas.core.indexing
import
need_slice
...
...
@@ -71,9 +72,9 @@ class _LocIndexer:
stop
=
keys
.
index
(
rslice
.
stop
)
if
rslice
.
stop
is
not
None
else
None
except
ValueError
:
raise
KeyError
(
"
The slice start label or the slice stop label is not present in the columns.
"
)
if
not
is_
numb
er
(
rslice
):
raise
TypeError
(
"
The step parameter of the slice must be
numeric
.
"
)
return
keys
[
slice
(
start
,
stop
,
rslice
.
step
)]
if
not
is_
integ
er
(
rslice
)
and
rslice
>
0
:
raise
TypeError
(
"
The step parameter of the slice must be
positive integer
.
"
)
return
keys
[
slice
(
start
,
stop
+
1
,
rslice
.
step
)]
class
DictOfSeries
:
...
...
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