Skip to content

Commit d844086

Browse files
committed
Change condition
1 parent 60d8cb0 commit d844086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

databricks/koalas/plot/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ def __call__(self, kind="line", backend=None, **kwargs):
189189
"area": SampledPlot().get_sampled,
190190
"line": SampledPlot().get_sampled,
191191
}
192-
if data_preprocessor_map[kind]:
192+
if not data_preprocessor_map[kind]:
193193
raise NotImplementedError(
194194
"'%s' plot is not supported with '%s' plot "
195-
"backend yet." % plot_backend.__name__
195+
"backend yet." % (kind, plot_backend.__name__)
196196
)
197197
plot_data = data_preprocessor_map[kind](plot_data)
198198
return plot_backend.plot(plot_data, kind=kind, **kwargs)

0 commit comments

Comments
 (0)