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
Kvl example ok meuse #28
Kvl example ok meuse #28
Conversation
@kvanlombeek , this is a nice example. I quite like it. A few suggestions:
|
Hi @basaks Thanks for your positive feedback. I have a few questions about your suggestions:
|
hi @kvanlombeek , |
hi @basaks ,
I don't understand your request to clarify why I need pandas and shapely however. Some interpretations that I see:
I am a bit surprised by this request, as when I follow data science tutorials with notebooks, I have never seen anybody explaining why they import pandas for example. But I probably just don't understand your request, and am happy to implement it once I understand it. |
@kvanlombeek That's a great example, thanks for contributing!
Yeah, it's just that for libraries the general assumption is that once you install the library, you can run the examples without installing anything else (see for instance scikit-learn's examples/ folder, and because PyKrige aims to be a lightweight library we can't just add new dependencies easily.
(this will also install Just a comment regarding PEP8 code style; for functions, the usual code style is Also the person who is going to merge this should use "Squash and merge" button (I think), otherwise the deleted 10MB of files will still end up in the git history of the master branch. Besides the main notebook is 400kB in size (mostly, I imagine due to images). As far as I understand, after running it on your computer, git will detect it as different, and will try to add the new generated images with the next commit (adding 400kB to the repo size), so care must be taken not to update this notebook (particularly with minor changes) too often. Or maybe we should adapt some ideas from this post in the future... cc @bsmurphy , @basaks |
@rth Ok clear, thanks for the great feedback. Regarding the last point, I can clear all notebook outputs just before saving, this will significantly reduce the size of the file. The downside is that I believe you can't view the notebook and its output in the browser in the github repo, which is a nice feature to convince new users to use this repo. I will ask a git expert if there is a way to have the benefits of both options. |
yes, it's quite nice to have the preview on github (though the map plots don't seem to render)... Also maybe it would be best rename the example to |
@rth It is good that we talk about this:
Hope this is clear, up to you guys! |
I went for the second option, let me know if there are still issues. |
LGTM @kvanlombeek . |
LGTM as well. |
Addition of an example how to use the PyKrige package, using the spatial dataset http://spatial-analyst.net/book/meusegrids