Skip to content

Commit

Permalink
[SPARK-50138][PYTHON][DOCS][TESTS] Refine docstring for basic functions
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
Refine the docstring for basic functions

### Why are the changes needed?
1, make example copy-pasteable;
2, clarify `str` is a column name or literal string;
3, `show` both the input columns and output columns, to make the projection more clear;
4, improve the test coverage by adding more doctests;

### Does this PR introduce _any_ user-facing change?
doc change

### How was this patch tested?
ci

### Was this patch authored or co-authored using generative AI tooling?
no

Closes apache#48669 from zhengruifeng/py_doc_1.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
  • Loading branch information
zhengruifeng authored and HyukjinKwon committed Oct 27, 2024
1 parent eed1530 commit 5538109
Showing 1 changed file with 300 additions and 283 deletions.
Loading

0 comments on commit 5538109

Please sign in to comment.