Skip to content

Commit

Permalink
Use list of columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jnettels committed Apr 9, 2019
1 parent ee31e63 commit cb7b910
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trnpy/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def bokeh_circles_from_df(df_in, x_col, y_cols=[], tips_cols=[], size=10,
``plot_width``, etc.
'''
if len(y_cols) == 0: # Per default, use all columns in the DataFrame
y_cols = df_in.columns
y_cols = list(df_in.columns)

df = df_in.reset_index() # Remove index
selection = y_cols + [x_col] + list(tips_cols)
Expand Down Expand Up @@ -321,7 +321,6 @@ def bokeh_time_line(df_in, y_cols=[], palette=palette_default,
'''
if len(y_cols) == 0: # Per default, use all columns in the DataFrame
y_cols = list(df_in.columns)
x_col = x_col

df = df_in.reset_index() # Remove index
source = ColumnDataSource(data=df[[x_col]+y_cols]) # Use required columns
Expand Down
File renamed without changes.

0 comments on commit cb7b910

Please sign in to comment.