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
When the dynamic range of two groups are not the same, histogram bins each group according to its own range. Ideally these should match, taking the union of dynamic ranges and binning it for all.
The output of above code is:
Expected Output
Histograms with bins of equal widths (or maybe an input flag to hist that could do this)
maybe somethings like the output of following code:
Closes#479
Contrary to the title `plotting.py`, which uses Seaborn, produces consistent bin-width when the range of values differs
between images. The Jupyter Notebook (`notebooks/02-Summary-statistics-and-plots.ipynb`) uses Pandas for loading data
and plotting it (a deliberate choice to reduce the number of packages users would encounter) and it is Pandas which
produces the different bin-widths (see [#22222 ENH: groupby.hist bins don't
match](pandas-dev/pandas#22222)).
The Notebook has been updated to show how to use `np.linspace()` across the total range of data.
Docstrings of `tests/test_plotting.py` have also been improved.
Code Sample, a copy-pastable example if possible
Problem description
When the dynamic range of two groups are not the same, histogram bins each group according to its own range. Ideally these should match, taking the union of dynamic ranges and binning it for all.
The output of above code is:
Expected Output
Histograms with bins of equal widths (or maybe an input flag to
hist
that could do this)maybe somethings like the output of following code:
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-29-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.23.3
pytest: 3.5.0
pip: 18.0
setuptools: 39.1.0
Cython: 0.28.1
numpy: 1.14.5
scipy: 1.0.1
pyarrow: None
xarray: None
IPython: 6.3.0
sphinx: 1.7.2
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.2
openpyxl: None
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.9999999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: 0.2.0
pandas_datareader: None
The text was updated successfully, but these errors were encountered: