HyukjinKwon commented on a change in pull request #33356:
URL: https://github.com/apache/spark/pull/33356#discussion_r670200686
##########
File path: python/pyspark/pandas/ml.py
##########
@@ -78,7 +78,7 @@ def to_numeric_df(psdf: "ps.DataFrame") ->
Tuple[pyspark.sql.DataFrame, List[Lab
"""
# TODO, it should be more robust.
accepted_types = {
- np.dtype(dt)
+ np.dtype(dt) # type: ignore
Review comment:
I couldn't figure out how to fix:
```
python/pyspark/pandas/ml.py:81: error: Value of type variable
"_DTypeScalar_co" of "dtype" cannot be "object"
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]