er
This commit is contained in:
@@ -93,6 +93,7 @@ from rowers.utils import lbstoN
|
|||||||
from rowers.datautils import p0
|
from rowers.datautils import p0
|
||||||
import rowers.datautils as datautils
|
import rowers.datautils as datautils
|
||||||
|
|
||||||
|
from pandas.core.groupby.groupby import DataError
|
||||||
|
|
||||||
def errorbar(fig, x, y, source=ColumnDataSource(),
|
def errorbar(fig, x, y, source=ColumnDataSource(),
|
||||||
xerr=False, yerr=False, color='black',
|
xerr=False, yerr=False, color='black',
|
||||||
@@ -343,8 +344,11 @@ def interactive_boxchart(datadf,fieldname,extratitle='',
|
|||||||
|
|
||||||
hv.extension('bokeh')
|
hv.extension('bokeh')
|
||||||
|
|
||||||
boxwhiskers = hv.BoxWhisker(datadf,'date',fieldname)
|
try:
|
||||||
boxwhiskers.opts(tools=TOOLS,outlier_color='white')
|
boxwhiskers = hv.BoxWhisker(datadf,'date',fieldname)
|
||||||
|
boxwhiskers.opts(tools=TOOLS,outlier_color='white')
|
||||||
|
except DataError:
|
||||||
|
return "","Invalid Data"
|
||||||
|
|
||||||
|
|
||||||
plot = hv.render(boxwhiskers)
|
plot = hv.render(boxwhiskers)
|
||||||
|
|||||||
Reference in New Issue
Block a user