Question: I'm trying to display a static image located in the same folder as my Html file but it seems I can't get the right path for it to display correctly. The application I'm developing is an atlassian plugin that also includes a java backend to get Data from the Database and I'm displaying it on the frontend using HTML and javascript, the whole application runs on a webserver as a Plugin. Both the image and the Html file are located in here: `D:\clone4\project\src\main\resources\templates\scheduleraction`

The URL path for the web application is:

`https://staging.com/jira/secure/SchedulerAction!default.jspa`

I tried many ways and this is the last one :

`<img src="/SchedulerAction!default.jspa/piechart.jpg" alt="pie-chart">`

I need to add the correct path in the "src" so the client can retrieve the image from my Files on the webserver. I would love any hint or help!

[![enter image description here](https://i.stack.imgur.com/kdOj9.png)](https://i.stack.imgur.com/kdOj9.png)

Answer: 
```
s=df.mask((df-df.apply(lambda x: x.std() )).gt(5))#mask where condition applies
s=s.assign(A=s.A.fillna(s.A.max()),B=s.B.fillna(s.B.max())).sort_index(axis = 0)#fill with max per column and resort frame

    A    B
0  1.0  2.0
1  1.0  6.0
2  2.0  8.0
3  1.0  8.0
4  2.0  1.0

```
Per the discussion in the comments you need to decide what your threshold is. say it is q=100, then you can do

```
q = 100
df.loc[df['A'] > q,'A'] = max(df.loc[df['A'] < q,'A'] )
df

```

this fixes column A:

```

    A   B
0   1   2
1   1   6
2   2   8
3   1   115
4   2   1

```

do the same for B