Skip to content

Commit

Permalink
[SPARK-50147][PYTHON][DOCS][TESTS] Refine docstring for trigonometric…
Browse files Browse the repository at this point in the history
… functions

### What changes were proposed in this pull request?
Refine docstring for trigonometric 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 changes

### How was this patch tested?
added doctests

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

Closes #48678 from zhengruifeng/py_doc_2.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
  • Loading branch information
zhengruifeng authored and dongjoon-hyun committed Oct 28, 2024
1 parent 9116932 commit 0a06322
Showing 1 changed file with 518 additions and 163 deletions.
Loading

0 comments on commit 0a06322

Please sign in to comment.