-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-36146][PYTHON][INFRA][TESTS] Upgrade Python version from 3.6 to 3.9 in GitHub Actions' linter/docs #33356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1646,14 +1646,14 @@ def _select_rows_by_iterable( | |
| ) -> Tuple[Optional[Column], Optional[int], Optional[int]]: | ||
| sdf = self._internal.spark_frame | ||
|
|
||
| if any(isinstance(key, (int, np.int, np.int64, np.int32)) and key < 0 for key in rows_sel): | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| if any(isinstance(key, (int, np.int64, np.int32)) and key < 0 for key in rows_sel): | ||
| offset = sdf.count() | ||
| else: | ||
| offset = 0 | ||
|
|
||
| new_rows_sel = [] | ||
| for key in list(rows_sel): | ||
| if not isinstance(key, (int, np.int, np.int64, np.int32)): | ||
| if not isinstance(key, (int, np.int64, np.int32)): | ||
| raise TypeError( | ||
| "cannot do positional indexing with these indexers [{}] of {}".format( | ||
| key, type(key) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I couldn't figure out how to fix: |
||
| for dt in [np.int8, np.int16, np.int32, np.int64, np.float32, np.float64, np.bool_] | ||
| } | ||
| numeric_column_labels = [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't follow why it complains:
Presumably because of different variable name? we can't change for compatibility reason.