-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
DOC: More examples comparison with sql #12932
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
DOC: More examples comparison with sql #12932
Conversation
pls don't close original PR's and open new ones, just push to the SAME one. |
Contributing to pandas | ||
====================== | ||
|
||
Where to start? |
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 is not part of your PR, pls remove
sorry, i'm new to GitHub stuff - have to learn how to deal with that |
@jreback, how can i remove it? |
just rebase on master
|
i either have this error message: [pandas_dev] C:\Users\Max\Anaconda3\envs\pandas-maxu777\doc>git rebase -i origin/master It seems that there is already a rebase-merge directory, and or that: [pandas_dev] C:\Users\Max\Anaconda3\envs\pandas-maxu777\doc>git commit -m "restored original CONTRIBUTING.md" i'm giving up - unfortunately i don't have that much time to play with |
then try again |
http://stackoverflow.com/questions/2047465/how-can-i-delete-a-file-from-git-repo you can also do (you need to do the abort though)
|
@jreback, i've pushed it now - is it OK now? |
not sure what you have pushed here, but doesn't look like its updated according to my comments. |
780ded2
to
b32738b
Compare
@jreback, is it OK now? |
@@ -109,9 +109,9 @@ For a python 3 environment: | |||
|
|||
conda create -n pandas_dev python=3 --file ci/requirements_dev.txt |
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 file should be removed, but if you can't i will do on merge
any comments from those SQL inclined |
|
||
.. ipython:: python | ||
|
||
tips.sort_values(['total_bill'], ascending=False).groupby('sex').head(3) |
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.
show these with chained method syntax e.g.
(tips.sort_values(['total_bill'], ascending=False)
.groupby('sex')
.head(3)
)
Current coverage is 83.91%@@ master #12932 diff @@
========================================
Files 135 136 +1
Lines 49664 49918 +254
Methods 0 0
Branches 0 0
========================================
+ Hits 41610 41885 +275
+ Misses 8054 8033 -21
Partials 0 0
|
+1 on the SQL docs. |
tips.loc[tips['rn'] < 3].sort_values(['day','rn']) | ||
|
||
the same using `rank(method='first')` function | ||
|
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.
(tips.assign(rn=tips.sort_values(['total_bill'], ascending=False)
.groupby(['day'])
.cumcount() + 1)
.query('rn < 3')
)
…corresponding Pandas expression
@jreback, thanks for the hint: |
thanks! FYI, I think somehow the |
git diff upstream/master | flake8 --diff
added the following examples: