-
-
Notifications
You must be signed in to change notification settings - Fork 141
ENH: Add more 1.5.0 features #338
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
Conversation
We need to increase the time limit. Can you modify the other PR to do that? |
I'll try but I think it is stuck and any timeout won't fix it. It should only take a couple of seconds to finish what it is doing when it stops working. |
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.
One small change on read_csv()
pandas-stubs/io/parsers/readers.pyi
Outdated
@@ -44,7 +48,7 @@ def read_csv( | |||
| npt.NDArray | |||
| Callable[[str], bool] | |||
| None = ..., | |||
dtype: DtypeArg | None = ..., | |||
dtype: DtypeArg | defaultdict[str, Dtype] | None = ..., |
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.
doesn't this have to be changed for all the overloads in read_csv()
?
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.
Probably, and also for read_clipboard.
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.
Fixed.
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'm still seeing that only one of the overloads was changed.
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.
- move a test as indicated
- Not seeing all overloads for
read_csv()
changed
tests/test_frame.py
Outdated
@@ -821,6 +821,19 @@ def test_types_to_feather() -> None: | |||
df.to_feather(file) | |||
|
|||
|
|||
def test_arrow_dtype() -> None: |
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.
this should go in test_pandas.py
not test_frame.py
pandas-stubs/io/parsers/readers.pyi
Outdated
@@ -44,7 +48,7 @@ def read_csv( | |||
| npt.NDArray | |||
| Callable[[str], bool] | |||
| None = ..., | |||
dtype: DtypeArg | None = ..., | |||
dtype: DtypeArg | defaultdict[str, Dtype] | None = ..., |
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'm still seeing that only one of the overloads was changed.
We could again try caching the entire venv. The only downside is that infrequently it can take ages to retrieve a large cache which can negate any speedups. Currently, we just cache the tiny poetry.lock. |
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.
thanks @bashtage
@bashtage ping when green. PR looks good, but testing is failing. |
|
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.
thanks @bashtage
assert_type()
to assert the type of any return value