Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
craw
Manage
Activity
Members
Labels
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
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
Bertrand NÉRON
craw
Commits
c420c482
There was a problem fetching the pipeline summary.
Commit
c420c482
authored
8 years ago
by
Bertrand NÉRON
Browse files
Options
Downloads
Patches
Plain Diff
change split_data function to use groupby
parent
e714770c
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
craw/heatmap.py
+3
-4
3 additions, 4 deletions
craw/heatmap.py
with
3 additions
and
4 deletions
craw/heatmap.py
+
3
−
4
View file @
c420c482
...
@@ -52,11 +52,10 @@ def split_data(data):
...
@@ -52,11 +52,10 @@ def split_data(data):
:param data: the coverage data to split
:param data: the coverage data to split
:type data: a 2 dimension :class:`pandas.DataFrame` object
:type data: a 2 dimension :class:`pandas.DataFrame` object
:return: two matrix
:return: two matrix
:rtype: tuple of two :class:`pandas.DataFrame` object
:rtype: tuple of two :class:`pandas.DataFrame` object
(sense pandas.DataFrame, antisense pandas.DataFrame)
"""
"""
sense
=
data
.
loc
[
data
[
'
sense
'
]
==
'
S
'
]
grp
=
data
.
groupby
(
by
=
[
'
sense
'
])
antisense
=
data
.
loc
[
data
[
'
sense
'
]
==
'
AS
'
]
return
grp
.
get_group
(
'
S
'
).
copy
(),
grp
.
get_group
(
'
AS
'
).
copy
()
return
sense
,
antisense
def
sort
(
data
,
criteria
,
**
kwargs
):
def
sort
(
data
,
criteria
,
**
kwargs
):
...
...
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