|
| 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 pseudocode 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. |
0 commit comments