You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tutorial at pandas.pydata.org/pandas-docs/stable/10min.html has the following code, where the obvious mistake is having only 1 key "foo" instead of 2 keys: "foo" and "bar" throughout the whole example
Join
SQL style merges. See the Database style joining
In [77]: left = pd.DataFrame({'key': ['foo', 'foo'], 'lval': [1, 2]})
In [78]: right = pd.DataFrame({'key': ['foo', 'foo'], 'rval': [4, 5]})
In [79]: left
Out[79]:
key lval
0 foo 1
1 foo 2
In [80]: right
Out[80]:
key rval
0 foo 4
1 foo 5
In [81]: pd.merge(left, right, on='key')
Out[81]:
key lval rval
0 foo 1 4
1 foo 1 5
2 foo 2 4
3 foo 2 5
Here is how it should be (replaced second 'foo' with 'bar':
The text was updated successfully, but these errors were encountered:
DavidDobr
changed the title
TYPO: "10 Minutes to pandas"
TYPO: "10 Minutes to pandas" #mimimumeffort
Apr 29, 2016
DavidDobr
changed the title
TYPO: "10 Minutes to pandas" #mimimumeffort
TYPO: "10 Minutes to pandas"
Apr 29, 2016
Tutorial at pandas.pydata.org/pandas-docs/stable/10min.html has the following code, where the obvious mistake is having only 1 key "foo" instead of 2 keys: "foo" and "bar" throughout the whole example
Join
SQL style merges. See the Database style joining
Here is how it should be (replaced second 'foo' with 'bar':
The text was updated successfully, but these errors were encountered: