<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
pd.qcut(pd.Series([True, False, False, False, False, False, True]), 6, duplicates=&quot;drop&quot;, precision=2)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">pd</span>.<span class="pl-en">qcut</span>(<span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>]), <span class="pl-c1">6</span>, <span class="pl-s1">duplicates</span><span class="pl-c1">=</span><span class="pl-s">"drop"</span>, <span class="pl-s1">precision</span><span class="pl-c1">=</span><span class="pl-c1">2</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">Pandas throws a TypeError:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/tmp/pandas/env/lib/python3.5/site-packages/numpy/core/fromnumeric.py&quot;, line 52, in _wrapfunc
    return getattr(obj, method)(*args, **kwds)
TypeError: Cannot cast ufunc multiply output from dtype('float64') to dtype('bool') with casting rule 'same_kind'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py&quot;, line 210, in qcut
    dtype=dtype, duplicates=duplicates)
  File &quot;/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py&quot;, line 254, in _bins_to_cuts
    dtype=dtype)
  File &quot;/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py&quot;, line 351, in _format_labels
    precision = _infer_precision(precision, bins)
  File &quot;/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py&quot;, line 429, in _infer_precision
    levels = [_round_frac(b, precision) for b in bins]
  File &quot;/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py&quot;, line 429, in &lt;listcomp&gt;
    levels = [_round_frac(b, precision) for b in bins]
  File &quot;/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py&quot;, line 422, in _round_frac
    return np.around(x, digits)
  File &quot;/tmp/pandas/env/lib/python3.5/site-packages/numpy/core/fromnumeric.py&quot;, line 2837, in around
    return _wrapfunc(a, 'round', decimals=decimals, out=out)
  File &quot;/tmp/pandas/env/lib/python3.5/site-packages/numpy/core/fromnumeric.py&quot;, line 62, in _wrapfunc
    return _wrapit(obj, method, *args, **kwds)
  File &quot;/tmp/pandas/env/lib/python3.5/site-packages/numpy/core/fromnumeric.py&quot;, line 42, in _wrapit
    result = getattr(asarray(obj), method)(*args, **kwds)
TypeError: Cannot cast ufunc multiply output from dtype('float64') to dtype('bool') with casting rule 'same_kind'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "/tmp/pandas/env/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 52, in _wrapfunc
    return getattr(obj, method)(*args, **kwds)
TypeError: Cannot cast ufunc multiply output from dtype('float64') to dtype('bool') with casting rule 'same_kind'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py", line 210, in qcut
    dtype=dtype, duplicates=duplicates)
  File "/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py", line 254, in _bins_to_cuts
    dtype=dtype)
  File "/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py", line 351, in _format_labels
    precision = _infer_precision(precision, bins)
  File "/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py", line 429, in _infer_precision
    levels = [_round_frac(b, precision) for b in bins]
  File "/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py", line 429, in &lt;listcomp&gt;
    levels = [_round_frac(b, precision) for b in bins]
  File "/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py", line 422, in _round_frac
    return np.around(x, digits)
  File "/tmp/pandas/env/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 2837, in around
    return _wrapfunc(a, 'round', decimals=decimals, out=out)
  File "/tmp/pandas/env/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 62, in _wrapfunc
    return _wrapit(obj, method, *args, **kwds)
  File "/tmp/pandas/env/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 42, in _wrapit
    result = getattr(asarray(obj), method)(*args, **kwds)
TypeError: Cannot cast ufunc multiply output from dtype('float64') to dtype('bool') with casting rule 'same_kind'
</code></pre></div>
<p dir="auto">If the second parameter for qcut is changed from 6 to 7, a different TypeError is raised:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py&quot;, line 207, in qcut
    bins = algos.quantile(x, quantiles)
  File &quot;/tmp/pandas/env/src/pandas/pandas/core/algorithms.py&quot;, line 903, in quantile
    return algos.arrmap_float64(q, _get_score)
  File &quot;pandas/_libs/algos_common_helper.pxi&quot;, line 416, in pandas._libs.algos.arrmap_float64
  File &quot;/tmp/pandas/env/src/pandas/pandas/core/algorithms.py&quot;, line 888, in _get_score
    idx % 1)
  File &quot;/tmp/pandas/env/src/pandas/pandas/core/algorithms.py&quot;, line 876, in _interpolate
    return a + (b - a) * fraction
TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/tmp/pandas/env/src/pandas/pandas/core/reshape/tile.py", line 207, in qcut
    bins = algos.quantile(x, quantiles)
  File "/tmp/pandas/env/src/pandas/pandas/core/algorithms.py", line 903, in quantile
    return algos.arrmap_float64(q, _get_score)
  File "pandas/_libs/algos_common_helper.pxi", line 416, in pandas._libs.algos.arrmap_float64
  File "/tmp/pandas/env/src/pandas/pandas/core/algorithms.py", line 888, in _get_score
    idx % 1)
  File "/tmp/pandas/env/src/pandas/pandas/core/algorithms.py", line 876, in _interpolate
    return a + (b - a) * fraction
TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead.
</code></pre></div>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">Something like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0      (0.29, 1.0]
1    (-0.01, 0.29]
2    (-0.01, 0.29]
3    (-0.01, 0.29]
4    (-0.01, 0.29]
5    (-0.01, 0.29]
6      (0.29, 1.0]
dtype: category
Categories (2, interval[float64]): [(-0.01, 0.29] &lt; (0.29, 1.0]]"><pre class="notranslate"><code class="notranslate">0      (0.29, 1.0]
1    (-0.01, 0.29]
2    (-0.01, 0.29]
3    (-0.01, 0.29]
4    (-0.01, 0.29]
5    (-0.01, 0.29]
6      (0.29, 1.0]
dtype: category
Categories (2, interval[float64]): [(-0.01, 0.29] &lt; (0.29, 1.0]]
</code></pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<p dir="auto">Using Pandas 0.23.0.dev0+516.g74e6c78, also reproducable with 0.22.0. In Pandas 0.20.3, the first TypeError is also reproducable, but the second command (with 7 instead of 6) works.</p>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.5.2.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 4.13.0-36-generic<br>
machine: x86_64<br>
processor: x86_64<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: de_DE.UTF-8<br>
LOCALE: de_DE.UTF-8</p>
<p dir="auto">pandas: 0.23.0.dev0+516.g74e6c78<br>
pytest: None<br>
pip: 9.0.1<br>
setuptools: 38.5.2<br>
Cython: 0.27.3<br>
numpy: 1.14.1<br>
scipy: None<br>
pyarrow: None<br>
xarray: None<br>
IPython: None<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.7.0<br>
pytz: 2018.3<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
feather: None<br>
matplotlib: None<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: None<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: None<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details>
<p dir="auto"><code class="notranslate">skipfooter</code>  : "This line <a href="https://github.com/pydata/pandas/blob/master/pandas/io/parsers.py#L729">here</a> says I am the right choice."</p>
<p dir="auto"><code class="notranslate">skip_footer</code> : "This line <a href="https://github.com/pydata/pandas/blob/master/pandas/io/parsers.py#L519">here</a> says I am the right choice."</p>
<p dir="auto">Whatever the case is, something should certainly be done to avoid having duplicate arguments for the same thing, as can be seen <a href="https://github.com/pydata/pandas/blob/master/pandas/io/parsers.py#L582">here</a></p>