diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css index bb24761cdb159..84eafa308175c 100644 --- a/doc/source/_static/css/getting_started.css +++ b/doc/source/_static/css/getting_started.css @@ -131,20 +131,30 @@ ul.task-bullet > li > p:first-child { /* Getting started index page */ -.intro-card { +.comparison-card { background:#FFF; border-radius:0; padding: 30px 10px 10px 10px; margin: 10px 0px; } -.intro-card .card-text { - margin:20px 0px; - /*min-height: 150px; */ +.comparison-card p.card-text { + margin: 0px; } -.intro-card .card-img-top { +.comparison-card .card-img-top { margin: 10px; + margin-bottom: 20px; + height: 72px; +} + +.comparison-card-excel .card-img-top, .comparison-card-stata .card-img-top, .comparison-card-sas .card-img-top { + height: 52px; +} + +.comparison-card .card-footer { + border: none; + background-color:white; } .install-block { @@ -154,10 +164,13 @@ ul.task-bullet > li > p:first-child { .install-card .card-header { border: none; background-color:white; + padding: 1rem 1rem 0rem 1rem; +} + +.install-card .card-header p.card-text { color: #150458; font-size: 1.1rem; font-weight: bold; - padding: 1rem 1rem 0rem 1rem; } .install-card .card-footer { diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css index 87357fd8ae716..452c7d20ff5df 100644 --- a/doc/source/_static/css/pandas.css +++ b/doc/source/_static/css/pandas.css @@ -5,39 +5,40 @@ --pst-color-info: 23, 162, 184; } -/* Getting started index page */ +/* Main index page overview cards */ .intro-card { background: #fff; border-radius: 0; - padding: 30px 10px 10px 10px; + padding: 30px 10px 20px 10px; margin: 10px 0px; } -.intro-card .card-text { - margin: 20px 0px; - /*min-height: 150px; */ +.intro-card p.card-text { + margin: 0px; } -.custom-button { - background-color: #dcdcdc; +.intro-card .card-img-top { + margin: 10px; + height: 52px; +} + +.intro-card .card-header { border: none; - color: #484848; - text-align: center; - text-decoration: none; - display: inline-block; - font-size: 0.9rem; - border-radius: 0.5rem; - max-width: 220px; - padding: 0.5rem 0rem; + background-color:white; + color: #150458 !important; + font-size: var(--pst-font-size-h5); + font-weight: bold; + padding: 2.5rem 0rem 0.5rem 0rem; } -.custom-button a { - color: #484848; +.intro-card .card-footer { + border: none; + background-color:white; } -.custom-button p { - margin-top: 0; - margin-bottom: 0rem; - color: #484848; +.intro-card .card-footer p.card-text{ + max-width: 220px; + margin-left: auto; + margin-right: auto; } diff --git a/doc/source/conf.py b/doc/source/conf.py index 66f5e631fa656..8df048ce65582 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -65,6 +65,7 @@ "sphinx.ext.ifconfig", "sphinx.ext.linkcode", "nbsphinx", + "sphinx_panels", "contributors", # custom pandas extension ] @@ -139,6 +140,10 @@ # nbsphinx do not use requirejs (breaks bootstrap) nbsphinx_requirejs_path = "" +# sphinx-panels shouldn't add bootstrap css since the pydata-sphinx-theme +# already loads it +panels_add_bootstrap_css = False + # Add any paths that contain templates here, relative to this directory. templates_path = ["../_templates"] diff --git a/doc/source/getting_started/index.rst b/doc/source/getting_started/index.rst index d05384502bde7..4792d26d021d6 100644 --- a/doc/source/getting_started/index.rst +++ b/doc/source/getting_started/index.rst @@ -9,82 +9,49 @@ Getting started Installation ------------ -.. raw:: html +.. panels:: + :card: + install-card + :column: col-lg-6 col-md-6 col-sm-12 col-xs-12 p-3 -
+ Working with conda?
+ ^^^^^^^^^^^^^^^^^^^
-pandas is part of the `Anaconda
+ pandas can be installed via pip from `PyPI
Installing a specific version? - Installing from source? - Check the advanced installation page.
- -.. container:: custom-button - - :ref:`Learn moreThe R programming language provides the dataframe
data structure and multiple packages,
- such as tidyverse use and extend data.frame
s for convenient data handling
- functionalities similar to pandas.
Already familiar to SELECT
, GROUP BY
, JOIN
, etc.?
- Most of these SQL manipulations do have equivalents in pandas.
The data set
included in the
- STATA statistical software suite corresponds
- to the pandas dataframe
. Many of the operations known from STATA have an equivalent
- in pandas.
Users of Excel - or other spreadsheet programs will find that many of the concepts are transferrable to pandas.
+ +++ -.. container:: custom-button + .. link-button:: compare_with_stata + :type: ref + :text: Learn more + :classes: btn-secondary stretched-link - :ref:`Learn moreThe SAS statistical software suite
- also provides the data set
corresponding to the pandas dataframe
.
- Also SAS vectorized operations, filtering, string processing operations, and more have similar
- functions in pandas.
New to pandas? Check out the getting started guides. They - contain an introduction to pandas' main concepts and links to additional tutorials.
- -.. container:: custom-button - - :ref:`To the getting started guidesThe user guide provides in-depth information on the - key concepts of pandas with useful background information and explanation.
- -.. container:: custom-button - - :ref:`To the user guideThe reference guide contains a detailed description of - the pandas API. The reference describes how the methods work and which parameters can - be used. It assumes that you have an understanding of the key concepts.
- -.. container:: custom-button - - :ref:`To the reference guideSaw a typo in the documentation? Want to improve - existing functionalities? The contributing guidelines will guide - you through the process of improving pandas.
- -.. container:: custom-button - - :ref:`To the development guide