Question: my dialog inheritance dialogFragment.

when I button click, show dialog.

but I button Click multiple times. show multiple dialog.(overlap dialog)

I want show only one dialog.

I try this.

```
if (dialog.getDialog().isShowing()){
    //not showing dialog 
} else {
    dialog.show();
}

```

but not work. 

how to show dialog overlapping protection on android?

Answer: 
It seems you only need:

```
ruta2=ruta2.loc[:, ~(ruta2.columns.str[:4].str.startswith('Prev'))]
#same as
#ruta2=ruta2.loc[:, ~ruta2.columns.str.startswith('Prev')]
print (ruta2)
   Current SAN  Current TRE
A            5            3
B            6            6
C           12            8

```

Or:

```
cols = ruta2.columns[ ~(ruta2.columns.str[:4].str.startswith('Prev'))]
ruta2=ruta2[cols]
print (ruta2)
   Current SAN  Current TRE
A            5            3
B            6            6
C           12            8

```

But if need only `Current` columns use [`filter`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.filter.html) (`^` means start of string in regex):

```
ruta2=ruta2.filter(regex='^Current')
print (ruta2)
   Current SAN  Current TRE
A            5            3
B            6            6
C           12            8

```
```
#filter the columns names starting with 'Current'
ruta2[[e for e in ruta2.columns if e.startswith('Current')]]
Out[383]: 
   Current SAN  Current TRE
A           5           3
B           6           6
C          12           8

```

Or you can use a mask array to filter columns:

```
ruta2.loc[:,ruta2.columns.str.startswith('Current')]
Out[385]: 
   Current SAN  Current TRE
A           5           3
B           6           6
C          12           8

```