Skip to content

Commit 9ff4708

Browse files
committed
Merge branch 'main' into bug_46673
2 parents 8ba96f2 + efd15b7 commit 9ff4708

File tree

101 files changed

+1472
-603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1472
-603
lines changed

.github/ISSUE_TEMPLATE/feature_request.md

-33
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Feature Request
2+
description: Suggest an idea for pandas
3+
title: "ENH: "
4+
labels: [Enhancement, Needs Triage]
5+
6+
body:
7+
- type: checkboxes
8+
id: checks
9+
attributes:
10+
label: Feature Type
11+
description: Please check what type of feature request you would like to propose.
12+
options:
13+
- label: >
14+
Adding new functionality to pandas
15+
- label: >
16+
Changing existing functionality in pandas
17+
- label: >
18+
Removing existing functionality in pandas
19+
- type: textarea
20+
id: description
21+
attributes:
22+
label: Problem Description
23+
description: >
24+
Please describe what problem the feature would solve, e.g. "I wish I could use pandas to ..."
25+
placeholder: >
26+
I wish I could use pandas to return a Series from a DataFrame when possible.
27+
validations:
28+
required: true
29+
- type: textarea
30+
id: feature
31+
attributes:
32+
label: Feature Description
33+
description: >
34+
Please describe how the new feature would be implemented, using psudocode if relevant.
35+
placeholder: >
36+
Add a new parameter to DataFrame, to_series, to return a Series if possible.
37+
38+
def __init__(self, ..., to_series: bool=False):
39+
"""
40+
Parameters
41+
----------
42+
...
43+
44+
to_series : bool, default False
45+
Return a Series if possible
46+
"""
47+
if to_series:
48+
return Series(data)
49+
validations:
50+
required: true
51+
- type: textarea
52+
id: alternative
53+
attributes:
54+
label: Alternative Solutions
55+
description: >
56+
Please describe any alternative solution (existing functionality, 3rd party package, etc.)
57+
that would satisfy the feature request.
58+
placeholder: >
59+
Write a custom function to return a Series when possible.
60+
61+
def to_series(...)
62+
result = pd.DataFrame(...)
63+
...
64+
validations:
65+
required: true
66+
- type: textarea
67+
id: context
68+
attributes:
69+
label: Additional Context
70+
description: >
71+
Please provide any relevant Github issues, code examples or references that help describe and support
72+
the feature request.

.pre-commit-config.yaml

+12-6
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ repos:
9494
stages: [manual]
9595
additional_dependencies: &pyright_dependencies
9696
97-
- repo: local
98-
hooks:
9997
- id: pyright_reportGeneralTypeIssues
10098
name: pyright reportGeneralTypeIssues
10199
entry: pyright --skipunannotated -p pyright_reportGeneralTypeIssues.json
@@ -105,8 +103,6 @@ repos:
105103
types: [python]
106104
stages: [manual]
107105
additional_dependencies: *pyright_dependencies
108-
- repo: local
109-
hooks:
110106
- id: mypy
111107
name: mypy
112108
entry: mypy
@@ -115,8 +111,6 @@ repos:
115111
pass_filenames: false
116112
types: [python]
117113
stages: [manual]
118-
- repo: local
119-
hooks:
120114
- id: flake8-rst
121115
name: flake8-rst
122116
description: Run flake8 on code snippets in docstrings or RST files
@@ -237,3 +231,15 @@ repos:
237231
additional_dependencies:
238232
- flake8==4.0.1
239233
- flake8-pyi==22.5.1
234+
- id: future-annotations
235+
name: import annotations from __future__
236+
entry: 'from __future__ import annotations'
237+
language: pygrep
238+
args: [--negate]
239+
files: ^pandas/
240+
types: [python]
241+
exclude: |
242+
(?x)
243+
/(__init__\.py)|(api\.py)|(_version\.py)|(testing\.py)|(conftest\.py)$
244+
|/tests/
245+
|/_testing/

CITATION.cff

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cff-version: 1.2.0
2+
title: 'pandas-dev/pandas: Pandas'
3+
message: 'If you use this software, please cite it as below.'
4+
authors:
5+
- name: "The pandas development team"
6+
license: BSD-3-Clause
7+
license-url: "https://github.com/pandas-dev/pandas/blob/main/LICENSE"
8+
repository-code: "https://github.com/pandas-dev/pandas"
9+
type: software
10+
url: "https://github.com/pandas-dev/pandas"

0 commit comments

Comments
 (0)