diff --git a/python/pyspark/ml/util.py b/python/pyspark/ml/util.py index 7cc9ef5b4a5c3..ac60deda53c46 100644 --- a/python/pyspark/ml/util.py +++ b/python/pyspark/ml/util.py @@ -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), ) diff --git a/python/pyspark/pandas/namespace.py b/python/pyspark/pandas/namespace.py index c0a8367c30676..32a173c147a4d 100644 --- a/python/pyspark/pandas/namespace.py +++ b/python/pyspark/pandas/namespace.py @@ -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.