This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Series combine #821
Open
Rubtsowa
wants to merge
21
commits into
IntelPython:master
Choose a base branch
from
Rubtsowa:series_combine
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Series combine #821
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7ec05f3
Impl Series.combine
Rubtsowa b576e03
merge
Rubtsowa 95d233e
change comment
Rubtsowa 2b95e9d
Merge branch 'master' of https://github.com/IntelPython/hpat into ser…
Rubtsowa 2104aae
change example
Rubtsowa aeef026
use sdc_join_series_indexes
Rubtsowa f09b792
change
Rubtsowa fafcaed
Merge branch 'master' of https://github.com/IntelPython/hpat into ser…
Rubtsowa b1ed1b3
for from chunks, change dtype for result array
Rubtsowa 4fdb369
Merge branch 'master' of https://github.com/IntelPython/hpat into ser…
Rubtsowa 6d930d8
change 'if' on 'if-else'
Rubtsowa c85feff
change for
Rubtsowa 18771f2
change for
Rubtsowa 8628e31
change for
Rubtsowa 6f37f53
add comment in skip test, some change in impl
Rubtsowa f66ace3
change if-else in 1 line
Rubtsowa 9fc55a7
Merge branch 'master' of https://github.com/IntelPython/hpat into ser…
Rubtsowa e7dc1f5
change test
Rubtsowa 6c78b8e
change tests
Rubtsowa d623b89
fix problem with PEP8
Rubtsowa ecd3dba
Merge branch 'master' of https://github.com/IntelPython/hpat into ser…
Rubtsowa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# ***************************************************************************** | ||
# Copyright (c) 2020, Intel Corporation All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# | ||
# Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# | ||
# Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR | ||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | ||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# ***************************************************************************** | ||
|
||
import pandas as pd | ||
from numba import njit | ||
|
||
|
||
@njit | ||
def series_combine(): | ||
s1 = pd.Series([1, 5, 2]) | ||
s2 = pd.Series([0, 3, 7, 8, 0]) | ||
|
||
return s1.combine(s2, max, fill_value=0) # Expect series of 1, 5, 7, 8, 0 | ||
|
||
|
||
print(series_combine()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rubtsowa What? This sounds like a bug...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kozlov-alexey This 'bug' in function sdc_join_series_indexes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rubtsowa Then it should be fixed (please create a JIRA case with a reproducer) before this is merged. Adapting to a bug is no way. @AlexanderKalistratov correct?