Skip to content

Commit

Permalink
[MINOR][PYTHON][DOCS] Fix some typos in docstrings and messages
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

This PR fixes some types in PySpark docstrings / error messages:

- `DefautParamsWritable` -> `DefaultParamsWritable`
- `paramter` -> `parameter`

### Why are the changes needed?

Typos.

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

No.

### How was this patch tested?

Not tested.

Closes apache#34952 from zero323/TYPOS-PYTHON.

Authored-by: zero323 <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
  • Loading branch information
zero323 authored and HyukjinKwon committed Dec 20, 2021
1 parent 547eda2 commit 13fd9ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/pyspark/ml/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def write(self):
return DefaultParamsWriter(self)
else:
raise TypeError(
"Cannot use DefautParamsWritable with type %s because it does not "
"Cannot use DefaultParamsWritable with type %s because it does not "
+ " extend Params.",
type(self),
)
Expand Down
4 changes: 2 additions & 2 deletions python/pyspark/pandas/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,12 @@ def read_delta(
version : string, optional
Specifies the table version (based on Delta's internal transaction version) to read from,
using Delta's time travel feature. This sets Delta's 'versionAsOf' option. Note that
this paramter and `timestamp` paramter cannot be used together, otherwise it will raise a
this parameter and `timestamp` parameter cannot be used together, otherwise it will raise a
`ValueError`.
timestamp : string, optional
Specifies the table version (based on timestamp) to read from,
using Delta's time travel feature. This must be a valid date or timestamp string in Spark,
and sets Delta's 'timestampAsOf' option. Note that this paramter and `version` paramter
and sets Delta's 'timestampAsOf' option. Note that this parameter and `version` parameter
cannot be used together, otherwise it will raise a `ValueError`.
index_col : str or list of str, optional, default: None
Index column of table in Spark.
Expand Down

0 comments on commit 13fd9ee

Please sign in to comment.