You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/04/13 19:48:42 UTC
[GitHub] [spark] xinrong-databricks opened a new pull request, #36184: Implement `ignore_index` of `DataFrame.sort_index`.
xinrong-databricks opened a new pull request, #36184:
URL: https://github.com/apache/spark/pull/36184
### What changes were proposed in this pull request?
Implement `ignore_index` of `DataFrame.sort_index`.
### Why are the changes needed?
To reach parity with pandas API.
### Does this PR introduce _any_ user-facing change?
Yes. `ignore_index` of `DataFrame.sort_index` is supported as below:
```py
>>> df = ps.DataFrame({'A': [2, 1, np.nan]}, index=['b', 'a', np.nan])
>>> df
A
b 2.0
a 1.0
NaN NaN
>>> df.sort_index(ignore_index=True)
A
0 1.0
1 2.0
2 NaN
```
### How was this patch tested?
Unit tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon commented on pull request #36184: [SPARK-38890][PYTHON] Implement `ignore_index` of `DataFrame.sort_index`
Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on PR #36184:
URL: https://github.com/apache/spark/pull/36184#issuecomment-1098599259
Merged to master.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] xinrong-databricks commented on pull request #36184: [SPARK-38890][PYTHON] Implement `ignore_index` of `DataFrame.sort_index`.
Posted by GitBox <gi...@apache.org>.
xinrong-databricks commented on PR #36184:
URL: https://github.com/apache/spark/pull/36184#issuecomment-1098427861
Please refer to https://github.com/xinrong-databricks/spark/actions/workflows/build_and_test.yml for test results.
@ueshin @HyukjinKwon @itholic Thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] HyukjinKwon closed pull request #36184: [SPARK-38890][PYTHON] Implement `ignore_index` of `DataFrame.sort_index`
Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #36184: [SPARK-38890][PYTHON] Implement `ignore_index` of `DataFrame.sort_index`
URL: https://github.com/apache/spark/pull/36184
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org