Data structures for statistical computing in Python - SciPy Conferences
Data structures for statistical computing in Python - SciPy Conferences
Data structures for statistical computing in Python - SciPy Conferences
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Merg<strong>in</strong>g data sets<br />
Return<strong>in</strong>g to our first example, one might also wish to jo<strong>in</strong> on some other<br />
key:<br />
>>> df.jo<strong>in</strong>(cats, on=’item’)<br />
date <strong>in</strong>dustry item value<br />
0 2009-12-28 TECH GOOG 622.9<br />
1 2009-12-29 TECH GOOG 619.4<br />
2 2009-12-30 TECH GOOG 622.7<br />
3 2009-12-31 TECH GOOG 620<br />
4 2009-12-28 TECH AAPL 211.6<br />
5 2009-12-29 TECH AAPL 209.1<br />
6 2009-12-30 TECH AAPL 211.6<br />
7 2009-12-31 TECH AAPL 210.7<br />
McK<strong>in</strong>ney () Statistical <strong>Data</strong> Structures <strong>in</strong> <strong>Python</strong> <strong>SciPy</strong> 2010 25 / 31