Question: I have a pandas data frame , that has some regression equations, with bias terms at the end of each equation. (+250 , -150, +450, +250 ) 

df:

```
    a           b
0   [TC100]+250 [TC200]-150
1   [FC100]+450 [FC200]+250

```

I would like to replace the bias terms [specifically , whatever comes after the last occurrence of the character `]` in each equation] . The replacement string should be based on the corresponding column name. Desired output as below 

output:

```
    a           b
0   [TC100]+a1  [TC200]+b1
1   [FC100]+a2  [FC200]+b2

```

I tried using `rsplit` , `df.replace` , `Series.str.extract` but no luck. I would appreciate very much any help .

Answer: 
Currently, there is no option to disable the stages based on the conditions. I'd suggest you can submit [feedback for this feature](https://developercommunity.visualstudio.com/spaces/21/index.html)

As Daniel Suggest you should create separate release pipelines for your use case

Another option is to you can define that conditions in the task level with your stages to skip.

For Example,

You have 3 stages: 

* DEV
* QA
* PROD

Each Stage have 2 task: 

* Task 1
* Task 2

Let say if you don't want to deploy in QA.

Then you can define your **custom condition** for the 2 Tasks in QA in order to **skip the execution.**

You can refer [my answer](https://stackoverflow.com/a/53229588/7073340) for working with custom conditions.
When starting the pipeline through the ADO webinterface, ADO now lets you specify which stages to run.
[![ADO screenshot: select stages to run](https://i.stack.imgur.com/SNN77.png)](https://i.stack.imgur.com/SNN77.png)

If you prefer to select the stages programmatically, then you can use conditions.
<https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops&tabs=yaml>

```yaml
stages:
- stage: A

# stage B runs if A fails
- stage: B
  condition: failed()

# stage C runs if B succeeds
- stage: C
  dependsOn:
  - A
  - B
  condition: succeeded('B')

```