Skip to content

Commit

Permalink
Avoid pandas import unless necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 7, 2023
1 parent 9690ad4 commit c09ed51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/pane/vizzu.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
)

import numpy as np
import pandas as pd
import param

from bokeh.models import ColumnDataSource
Expand Down Expand Up @@ -93,6 +92,8 @@ def _get_data(self):
return data, {str(k): v for k, v in cols.items()}

def _get_columns(self):
import pandas as pd

columns = []
for col, array in self._data.items():
if col in self.column_types:
Expand Down

0 comments on commit c09ed51

Please sign in to comment.