.. only:: html
.. note::
:class: sphx-glr-download-link-note
Click :ref:`here ` to download the full example code
.. rst-class:: sphx-glr-example-title
.. _sphx_glr_auto_examples_plot_plot_ames.py:
Ames Housing Dataset Visualization
====================================
.. rst-class:: sphx-glr-horizontal
*
.. image:: /auto_examples/plot/images/sphx_glr_plot_ames_001.png
:alt: Target distribution
:class: sphx-glr-multi-img
*
.. image:: /auto_examples/plot/images/sphx_glr_plot_ames_002.png
:alt: Continuous Feature vs Target, F=5.18E+03, F=2.92E+03, F=2.12E+03, F=2.04E+03, F=1.95E+03, F=1.84E+03, F=1.33E+03, F=1.16E+03, F=1.03E+03, F=1.01E+03
:class: sphx-glr-multi-img
*
.. image:: /auto_examples/plot/images/sphx_glr_plot_ames_003.png
:alt: Categorical Feature vs Target, F=5.77E-01, F=3.75E-01, F=3.33E-01, F=3.31E-01, F=2.98E-01, F=2.77E-01, F=2.65E-01, F=2.45E-01, F=2.32E-01, F=2.25E-01
:class: sphx-glr-multi-img
.. rst-class:: sphx-glr-script-out
Out:
.. code-block:: none
/home/circleci/project/dabl/plot/supervised.py:538: FutureWarning: The second positional argument of plot is a Series 'y'. If passing a column name, use a keyword.
warnings.warn("The second positional argument of plot is a Series 'y'."
/home/circleci/project/dabl/preprocessing.py:351: UserWarning: Discarding near-constant features: ['Street', 'Utilities', 'Land Slope', 'Condition 2', 'Roof Matl', 'Heating', 'Low Qual Fin SF', 'Kitchen AbvGr', 'Garage Cond', '3Ssn Porch', 'Pool Area', 'Misc Val']
warn("Discarding near-constant features: {}".format(
Target looks like regression
Showing only top 10 of 26 continuous features
/home/circleci/project/dabl/plot/utils.py:629: UserWarning: Dropped 5 outliers in column Gr Liv Area.
warn("Dropped {} outliers in column {}.".format(
/home/circleci/project/dabl/plot/utils.py:629: UserWarning: Dropped 1 outliers in column Garage Cars.
warn("Dropped {} outliers in column {}.".format(
/home/circleci/project/dabl/plot/utils.py:629: UserWarning: Dropped 2 outliers in column Total Bsmt SF.
warn("Dropped {} outliers in column {}.".format(
/home/circleci/project/dabl/plot/utils.py:629: UserWarning: Dropped 4 outliers in column 1st Flr SF.
warn("Dropped {} outliers in column {}.".format(
/home/circleci/project/dabl/plot/utils.py:629: UserWarning: Dropped 1 outliers in column Garage Yr Blt.
warn("Dropped {} outliers in column {}.".format(
/home/circleci/project/dabl/plot/utils.py:629: UserWarning: Dropped 7 outliers in column Mas Vnr Area.
warn("Dropped {} outliers in column {}.".format(
Showing only top 10 of 42 categorical features
/home/circleci/project/dabl/plot/utils.py:371: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels(
/home/circleci/project/dabl/plot/utils.py:371: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels(
/home/circleci/project/dabl/plot/utils.py:371: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels(
/home/circleci/project/dabl/plot/utils.py:371: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels(
/home/circleci/project/dabl/plot/utils.py:371: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels(
/home/circleci/project/dabl/plot/utils.py:371: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels(
/home/circleci/project/dabl/plot/utils.py:371: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels(
/home/circleci/project/dabl/plot/utils.py:371: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels(
/home/circleci/project/dabl/plot/utils.py:371: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels(
/home/circleci/project/dabl/plot/utils.py:371: UserWarning: FixedFormatter should only be used together with FixedLocator
ax.set_xticklabels(
|
.. code-block:: default
# sphinx_gallery_thumbnail_number = 3
from dabl import plot
from dabl.datasets import load_ames
import matplotlib.pyplot as plt
# load the ames housing dataset
# returns a plain dataframe
data = load_ames()
plot(data, 'SalePrice')
plt.show()
.. rst-class:: sphx-glr-timing
**Total running time of the script:** ( 0 minutes 3.854 seconds)
.. _sphx_glr_download_auto_examples_plot_plot_ames.py:
.. only :: html
.. container:: sphx-glr-footer
:class: sphx-glr-footer-example
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: plot_ames.py `
.. container:: sphx-glr-download sphx-glr-download-jupyter
:download:`Download Jupyter notebook: plot_ames.ipynb `
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery `_