Instead of setting x range manually in bokeh while plotting, I want to pass the maximum value of a column such as instead of setting max value to 10, it will be the max value of a certain column

```
p1 = figure(x_range=(0, 10))

```

**rf\_important** is the feature importance of a classifier and is defined as

```
rf_important = pd.Series(new_rf.feature_importances_, index=x.columns)

```

Furthermore, rf is **pandas.core.series.Series**

I want to get the maximum value of the first column from rf\_importance

```
rf.idmax

```

the above returns the maximum value in the feature importance rather than the maximum value in the columns. How can I access the columns and return the maximum value from there ?