-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
fix for building docs on Windows #61686
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
| # most time consuming 4 calls | ||
| %prun -l 4 df.apply(lambda x: integrate_f(x["a"], x["b"], x["N"]), axis=1) # noqa E999 | ||
| %prun -l 4 df.apply(lambda x: integrate_f(x['a'], x['b'], x['N']), axis=1) # noqa E999 |
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.
E999 has been removed. Remove the comment?
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.
done
| .. ipython:: python | ||
| %timeit apply_integrate_f(df["a"].to_numpy(), df["b"].to_numpy(), df["N"].to_numpy()) | ||
| %timeit apply_integrate_f(df['a'].to_numpy(), df['b'].to_numpy(), df['N'].astype(int).to_numpy()) |
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.
Can you instead create this as a 64-bit on L53 above?
"N": np.random.randint(100, 1000, (1000), dtype="int64"),
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.
done
rhshadrach
left a comment
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.
lgtm
|
Thanks @Dr-Irv |
doc\source\user_guide\enhancingperf.rst) #60149I was having two issues with building the docs on Windows.
--singlewas very slow because it was reading in lots of files. So there is a fix inconf.pythat changes any backslashes to/in the paths. Probably a better fix is to not be usingos.joinand usepathlib, but that's a larger change.doc\source\user_guide\enhancingperf.rst) #60149, there are 2 issues with buildingenhancingperf.rst:doc\source\user_guide\enhancingperf.rst) #60149 (comment) , having double quotes in the ipython strings messes up Windows, so changing them to single quotes makes it workint64dtypes, but the defaults coming fromnumpywhen building the DF areint32, so theastype(int)calls fix that