Skip to content

Commit 4dc4296

Browse files
WEB: add note to PDEP-10 about delayed timeline for requiring pyarrow (#61706)
1 parent ffc6fee commit 4dc4296

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

web/pandas/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ main:
1919
- meta
2020
- footnotes
2121
- codehilite
22+
- admonition
2223
static:
2324
logo: static/img/pandas_white.svg
2425
css:

web/pandas/pdeps/0010-required-pyarrow-dependency.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010

1111
[TOC]
1212

13+
!!! note
14+
While this PDEP mentions adding pyarrow as a required dependency in
15+
pandas 3.0, this aspect has been delayed until after pandas 3.0 (see the
16+
abstract of [PDEP-14](https://pandas.pydata.org/pdeps/0014-string-dtype.html)).
17+
Therefore, pandas 3.0 will *not* have a hard requirement on pyarrow but still use
18+
pyarrow by default (for the new string dtype) when installed.
19+
1320
## Abstract
1421

1522
This PDEP proposes that:

web/pandas/static/css/pandas.css

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,66 @@ h2:hover a.headerlink, h3:hover a.headerlink {
135135
opacity: 1;
136136
transition: opacity 0.5s;
137137
}
138+
139+
140+
/** Copied from the pydata-sphinx-theme **/
141+
div.admonition, .admonition {
142+
margin: 1.5625em auto;
143+
padding: 0 0.6rem 0.8rem;
144+
overflow: hidden;
145+
box-shadow: 0 .2rem .5rem rgba(0,0,0,0.1),0 0 .0625rem rgba(0,0,0,0.1) !important;
146+
/* break-inside has replaced page-break-inside and is widely usable since 2019 */
147+
page-break-inside: avoid;
148+
break-inside: avoid;
149+
border-left: 0.2rem solid;
150+
border-color: #276be9;
151+
border-radius: 0.25rem;
152+
background-color: #fff;
153+
/** * Special-case for a `sidebar` class that makes the admonition float to * the right like the {
154+
sidebar
155+
}
156+
directive. */
157+
}
158+
div.admonition *:last-child, .admonition *:last-child {
159+
margin-bottom: 0;
160+
}
161+
div.admonition p.admonition-title ~ *, .admonition p.admonition-title ~ * {
162+
margin-left: 1.4rem;
163+
margin-right: 1.4rem;
164+
}
165+
div.admonition > ol, .admonition > ol, div.admonition > ul, .admonition > ul {
166+
margin-left: 1em;
167+
}
168+
div.admonition > .admonition-title, .admonition > .admonition-title {
169+
margin: 0 -0.6rem;
170+
padding: 0.4rem 0.6rem 0.4rem 2rem;
171+
/* font-weight: var(--pst-admonition-font-weight-heading); */
172+
position: relative;
173+
background-color: #dce7fc;
174+
z-index: 1;
175+
}
176+
div.admonition > .admonition-title::after, .admonition > .admonition-title::after {
177+
position: absolute;
178+
left: 0.5rem;
179+
width: 1rem;
180+
height: 1rem;
181+
/* color: var(--pst-color-info); */
182+
/* font: var(--fa-font-solid); */
183+
line-height: inherit;
184+
/* content: "\f05a"; */
185+
opacity: 1;
186+
}
187+
div.admonition > .admonition-title + *, .admonition > .admonition-title + * {
188+
margin-top: 0.4em;
189+
}
190+
191+
div.admonition.note, .admonition.note {
192+
border-color: #276be9;
193+
}
194+
div.admonition.note > .admonition-title, .admonition.note > .admonition-title {
195+
background-color: #dce7fc;
196+
}
197+
div.admonition.note > .admonition-title::after, .admonition.note > .admonition-title::after {
198+
color: #276be9;
199+
/* content: "\f05a"; */
200+
}

0 commit comments

Comments
 (0)