tracking-exposed / dashboard

dashboard is the toolkit for data scientist who uses tracking.exposed services
https://facebook.tracking.exposed
5 stars 5 forks source link

viz.savePng should capture valueError #4

Closed berli0z closed 5 years ago

berli0z commented 5 years ago

savePng raises ValueError: view limit minimum -0.05500000000000001 is less than 1 and is an invalid Matplotlib date value. This often happens if you pass a non-datetime value to an axis that has datetime units when there are no values to show.

We should capture the exception and explain what's happening (maybe disabling the png or the entire process when df is empty).