Skip to content

Commit 55a939d

Browse files
calvhMarcoGorelli
authored andcommitted
WEB: Fix maintainers grid not displaying correctly (GH41438) (pandas-dev#41447)
1 parent afcf180 commit 55a939d

File tree

4 files changed

+30
-164
lines changed

4 files changed

+30
-164
lines changed

pandas/core/frame.py

+4-70
Original file line numberDiff line numberDiff line change
@@ -5029,76 +5029,10 @@ def fillna(
50295029
def fillna(
50305030
self,
50315031
value,
5032-
method: FillnaOptions | None,
5033-
axis: Axis | None,
5034-
inplace: Literal[True],
5035-
limit=...,
5036-
downcast=...,
5037-
) -> None:
5038-
...
5039-
5040-
@overload
5041-
def fillna(
5042-
self,
5043-
*,
5044-
inplace: Literal[True],
5045-
limit=...,
5046-
downcast=...,
5047-
) -> None:
5048-
...
5049-
5050-
@overload
5051-
def fillna(
5052-
self,
5053-
value,
5054-
*,
5055-
inplace: Literal[True],
5056-
limit=...,
5057-
downcast=...,
5058-
) -> None:
5059-
...
5060-
5061-
@overload
5062-
def fillna(
5063-
self,
5064-
*,
5065-
method: FillnaOptions | None,
5066-
inplace: Literal[True],
5067-
limit=...,
5068-
downcast=...,
5069-
) -> None:
5070-
...
5071-
5072-
@overload
5073-
def fillna(
5074-
self,
5075-
*,
5076-
axis: Axis | None,
5077-
inplace: Literal[True],
5078-
limit=...,
5079-
downcast=...,
5080-
) -> None:
5081-
...
5082-
5083-
@overload
5084-
def fillna(
5085-
self,
50865032
*,
5087-
method: FillnaOptions | None,
5088-
axis: Axis | None,
5089-
inplace: Literal[True],
5090-
limit=...,
5091-
downcast=...,
5092-
) -> None:
5093-
...
5094-
5095-
@overload
5096-
def fillna(
5097-
self,
5098-
value,
5099-
*,
5100-
axis: Axis | None,
51015033
inplace: Literal[True],
5034+
method: FillnaOptions | None = ...,
5035+
axis: Axis | None = ...,
51025036
limit=...,
51035037
downcast=...,
51045038
) -> None:
@@ -5107,10 +5041,10 @@ def fillna(
51075041
@overload
51085042
def fillna(
51095043
self,
5110-
value,
5111-
method: FillnaOptions | None,
51125044
*,
51135045
inplace: Literal[True],
5046+
method: FillnaOptions | None = ...,
5047+
axis: Axis | None = ...,
51145048
limit=...,
51155049
downcast=...,
51165050
) -> None:

pandas/core/series.py

+4-70
Original file line numberDiff line numberDiff line change
@@ -4607,76 +4607,10 @@ def fillna(
46074607
def fillna(
46084608
self,
46094609
value,
4610-
method: FillnaOptions | None,
4611-
axis: Axis | None,
4612-
inplace: Literal[True],
4613-
limit=...,
4614-
downcast=...,
4615-
) -> None:
4616-
...
4617-
4618-
@overload
4619-
def fillna(
4620-
self,
4621-
*,
4622-
inplace: Literal[True],
4623-
limit=...,
4624-
downcast=...,
4625-
) -> None:
4626-
...
4627-
4628-
@overload
4629-
def fillna(
4630-
self,
4631-
value,
4632-
*,
4633-
inplace: Literal[True],
4634-
limit=...,
4635-
downcast=...,
4636-
) -> None:
4637-
...
4638-
4639-
@overload
4640-
def fillna(
4641-
self,
4642-
*,
4643-
method: FillnaOptions | None,
4644-
inplace: Literal[True],
4645-
limit=...,
4646-
downcast=...,
4647-
) -> None:
4648-
...
4649-
4650-
@overload
4651-
def fillna(
4652-
self,
4653-
*,
4654-
axis: Axis | None,
4655-
inplace: Literal[True],
4656-
limit=...,
4657-
downcast=...,
4658-
) -> None:
4659-
...
4660-
4661-
@overload
4662-
def fillna(
4663-
self,
46644610
*,
4665-
method: FillnaOptions | None,
4666-
axis: Axis | None,
4667-
inplace: Literal[True],
4668-
limit=...,
4669-
downcast=...,
4670-
) -> None:
4671-
...
4672-
4673-
@overload
4674-
def fillna(
4675-
self,
4676-
value,
4677-
*,
4678-
axis: Axis | None,
46794611
inplace: Literal[True],
4612+
method: FillnaOptions | None = ...,
4613+
axis: Axis | None = ...,
46804614
limit=...,
46814615
downcast=...,
46824616
) -> None:
@@ -4685,10 +4619,10 @@ def fillna(
46854619
@overload
46864620
def fillna(
46874621
self,
4688-
value,
4689-
method: FillnaOptions | None,
46904622
*,
46914623
inplace: Literal[True],
4624+
method: FillnaOptions | None = ...,
4625+
axis: Axis | None = ...,
46924626
limit=...,
46934627
downcast=...,
46944628
) -> None:

web/pandas/about/team.md

+16-24
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,22 @@ If you want to support pandas development, you can find information in the [dona
88

99
## Maintainers
1010

11-
<div class="row maintainers">
12-
{% for row in maintainers.people | batch(6, "") %}
13-
<div class="card-group maintainers">
14-
{% for person in row %}
15-
{% if person %}
16-
<div class="card">
17-
<img class="card-img-top" alt="" src="{{ person.avatar_url }}"/>
18-
<div class="card-body">
19-
<h6 class="card-title">
20-
{% if person.blog %}
21-
<a href="{{ person.blog }}">
22-
{{ person.name or person.login }}
23-
</a>
24-
{% else %}
25-
{{ person.name or person.login }}
26-
{% endif %}
27-
</h6>
28-
<p class="card-text small"><a href="{{ person.html_url }}">{{ person.login }}</a></p>
29-
</div>
30-
</div>
31-
{% else %}
32-
<div class="card border-0"></div>
33-
{% endif %}
34-
{% endfor %}
11+
<div class="card-group maintainers">
12+
{% for person in maintainers.people %}
13+
<div class="card">
14+
<img class="card-img-top" alt="" src="{{ person.avatar_url }}"/>
15+
<div class="card-body">
16+
<h6 class="card-title">
17+
{% if person.blog %}
18+
<a href="{{ person.blog }}">
19+
{{ person.name or person.login }}
20+
</a>
21+
{% else %}
22+
{{ person.name or person.login }}
23+
{% endif %}
24+
</h6>
25+
<p class="card-text small"><a href="{{ person.html_url }}">{{ person.login }}</a></p>
26+
</div>
3527
</div>
3628
{% endfor %}
3729
</div>

web/pandas/static/css/pandas.css

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ a.navbar-brand img {
4545
div.card {
4646
margin: 0 0 .2em .2em !important;
4747
}
48+
@media (min-width: 576px) {
49+
.card-group.maintainers div.card {
50+
min-width: 10rem;
51+
max-width: 10rem;
52+
}
53+
}
4854
div.card .card-title {
4955
font-weight: 500;
5056
color: #130654;

0 commit comments

Comments
 (0)