-
Notifications
You must be signed in to change notification settings - Fork 367
Add column axis in ks.concat #1349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c8b73b2 to
4fc4f38
Compare
Codecov Report
@@ Coverage Diff @@
## master #1349 +/- ##
==========================================
- Coverage 95.23% 95.09% -0.14%
==========================================
Files 34 34
Lines 7576 7998 +422
==========================================
+ Hits 7215 7606 +391
- Misses 361 392 +31
Continue to review full report at Codecov.
|
ueshin
left a comment
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.
LGTM.
b1d0547 to
97a7718
Compare
cfd51ee to
0ef9bad
Compare
0ef9bad to
bb61faa
Compare
|
In the last commits, I addressed some corner cases such as operations against single column index vs multi-column index, and fixed some nits. |
| ( | ||
| [kdf3[("X", "A")].rename("ABC"), kdf3[("X", "B")]], | ||
| [pdf3[("X", "A")].rename("ABC"), pdf3[("X", "B")]], | ||
| ), |
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.
This two test cases were added to verify single index vs multi-index in the column.
| ValueError, | ||
| r"Labels have to be unique; however, got duplicated labels \['A'\].", | ||
| lambda: ks.concat([kdf.A, kdf4.A], join="inner", axis=1), | ||
| ) |
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.
This test also was added to verify duplicated column cases.
d18c4a2 to
64e9d7f
Compare
| pdf5 = pd.DataFrame({"A": [0, 2, 4], "B": [1, 3, 5]}, index=[1, 2, 3]) | ||
| pdf6 = pd.DataFrame({"C": [1, 2, 3]}, index=[1, 3, 5]) | ||
| kdf5 = ks.from_pandas(pdf5) | ||
| kdf6 = ks.from_pandas(pdf6) |
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.
Added another test case.
64e9d7f to
184fdc0
Compare
|
Merged! |
This PR proposes to add
axisatks.concat(...).Resolves #625, Closes #1009.