Skip to content

Commit dc0803b

Browse files
authored
Merge branch 'master' into gh15077
2 parents b2f2d1e + fd54712 commit dc0803b

File tree

116 files changed

+2513
-1820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+2513
-1820
lines changed

ci/ironcache/get.py

-41
This file was deleted.

ci/ironcache/put.py

-48
This file was deleted.

ci/prep_cython_cache.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
ls "$HOME/.cache/"
44

55
PYX_CACHE_DIR="$HOME/.cache/pyxfiles"
6-
pyx_file_list=`find ${TRAVIS_BUILD_DIR} -name "*.pyx" -o -name "*.pxd"`
7-
pyx_cache_file_list=`find ${PYX_CACHE_DIR} -name "*.pyx" -o -name "*.pxd"`
6+
pyx_file_list=`find ${TRAVIS_BUILD_DIR} -name "*.pyx" -o -name "*.pxd" -o -name "*.pxi.in"`
7+
pyx_cache_file_list=`find ${PYX_CACHE_DIR} -name "*.pyx" -o -name "*.pxd" -o -name "*.pxi.in"`
88

99
CACHE_File="$HOME/.cache/cython_files.tar"
1010

ci/speedpack/Vagrantfile

-22
This file was deleted.

ci/speedpack/build.sh

-117
This file was deleted.

ci/speedpack/nginx/nginx.conf.template

-48
This file was deleted.

ci/submit_cython_cache.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
CACHE_File="$HOME/.cache/cython_files.tar"
44
PYX_CACHE_DIR="$HOME/.cache/pyxfiles"
5-
pyx_file_list=`find ${TRAVIS_BUILD_DIR} -name "*.pyx" -o -name "*.pxd"`
5+
pyx_file_list=`find ${TRAVIS_BUILD_DIR} -name "*.pyx" -o -name "*.pxd" -o -name "*.pxi.in"`
66

77
rm -rf $CACHE_File
88
rm -rf $PYX_CACHE_DIR

doc/source/advanced.rst

+6-17
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ of tuples:
230230
Advanced indexing with hierarchical index
231231
-----------------------------------------
232232

233-
Syntactically integrating ``MultiIndex`` in advanced indexing with ``.loc/.ix`` is a
233+
Syntactically integrating ``MultiIndex`` in advanced indexing with ``.loc`` is a
234234
bit challenging, but we've made every effort to do so. for example the
235235
following works as you would expect:
236236

@@ -258,7 +258,7 @@ Passing a list of labels or tuples works similar to reindexing:
258258

259259
.. ipython:: python
260260
261-
df.ix[[('bar', 'two'), ('qux', 'one')]]
261+
df.loc[[('bar', 'two'), ('qux', 'one')]]
262262
263263
.. _advanced.mi_slicers:
264264

@@ -604,7 +604,7 @@ intended to work on boolean indices and may return unexpected results.
604604
605605
ser = pd.Series(np.random.randn(10))
606606
ser.take([False, False, True, True])
607-
ser.ix[[0, 1]]
607+
ser.iloc[[0, 1]]
608608
609609
Finally, as a small note on performance, because the ``take`` method handles
610610
a narrower range of inputs, it can offer performance that is a good deal
@@ -620,7 +620,7 @@ faster than fancy indexing.
620620
timeit arr.take(indexer, axis=0)
621621

622622
ser = pd.Series(arr[:, 0])
623-
timeit ser.ix[indexer]
623+
timeit ser.iloc[indexer]
624624
timeit ser.take(indexer)
625625

626626
.. _indexing.index_types:
@@ -661,7 +661,7 @@ Setting the index, will create create a ``CategoricalIndex``
661661
df2 = df.set_index('B')
662662
df2.index
663663
664-
Indexing with ``__getitem__/.iloc/.loc/.ix`` works similarly to an ``Index`` with duplicates.
664+
Indexing with ``__getitem__/.iloc/.loc`` works similarly to an ``Index`` with duplicates.
665665
The indexers MUST be in the category or the operation will raise.
666666

667667
.. ipython:: python
@@ -759,14 +759,12 @@ same.
759759
sf = pd.Series(range(5), index=indexf)
760760
sf
761761
762-
Scalar selection for ``[],.ix,.loc`` will always be label based. An integer will match an equal float index (e.g. ``3`` is equivalent to ``3.0``)
762+
Scalar selection for ``[],.loc`` will always be label based. An integer will match an equal float index (e.g. ``3`` is equivalent to ``3.0``)
763763
764764
.. ipython:: python
765765
766766
sf[3]
767767
sf[3.0]
768-
sf.ix[3]
769-
sf.ix[3.0]
770768
sf.loc[3]
771769
sf.loc[3.0]
772770
@@ -783,7 +781,6 @@ Slicing is ALWAYS on the values of the index, for ``[],ix,loc`` and ALWAYS posit
783781
.. ipython:: python
784782
785783
sf[2:4]
786-
sf.ix[2:4]
787784
sf.loc[2:4]
788785
sf.iloc[2:4]
789786
@@ -813,14 +810,6 @@ In non-float indexes, slicing using floats will raise a ``TypeError``
813810
In [3]: pd.Series(range(5)).iloc[3.0]
814811
TypeError: cannot do positional indexing on <class 'pandas.indexes.range.RangeIndex'> with these indexers [3.0] of <type 'float'>
815812
816-
Further the treatment of ``.ix`` with a float indexer on a non-float index, will be label based, and thus coerce the index.
817-
818-
.. ipython:: python
819-
820-
s2 = pd.Series([1, 2, 3], index=list('abc'))
821-
s2
822-
s2.ix[1.0] = 10
823-
s2
824813
825814
Here is a typical use-case for using this type of indexing. Imagine that you have a somewhat
826815
irregular timedelta-like indexing scheme, but the data is recorded as floats. This could for

0 commit comments

Comments
 (0)