@@ -101,6 +101,7 @@ def bar_viz(
101
101
("Source" , "@orig" ),
102
102
]
103
103
104
+ # Used to add y-padding to the graphs
104
105
col1_min = df [0 ][col ].min ()
105
106
col2_min = df [1 ][col ].min ()
106
107
col1_max = df [0 ][col ].max ()
@@ -159,6 +160,7 @@ def bar_viz(
159
160
_format_axis (fig , 0 , df [baseline ].max (), "y" )
160
161
161
162
df1 , df2 = df_list [0 ], df_list [1 ]
163
+ # Feature analysis here
162
164
if target != col and target and col in df1 .columns and col in df2 .columns :
163
165
col1 , col2 = df_list [0 ][col ], df_list [1 ][col ]
164
166
row_avgs_1 = []
@@ -261,7 +263,6 @@ def hist_viz(
261
263
)
262
264
bottom = 0 if yscale == "linear" or df .empty else counts .min () / 2
263
265
if y_start is not None and y_end is not None :
264
- # fig.y_range = (y_start * (1 - y_inc), y_end * (1 + y_inc))
265
266
fig .extra_y_ranges = {
266
267
"Counts" : Range1d (start = y_start * (1 - y_inc ), end = y_end * (1 + y_inc ))
267
268
}
@@ -287,8 +288,6 @@ def hist_viz(
287
288
fill_color = CATEGORY10 [i ],
288
289
line_color = CATEGORY10 [i ],
289
290
)
290
- # if col == 'LotFrontage':
291
- # breakpoint()
292
291
293
292
hover = HoverTool (tooltips = tooltips , attachment = "vertical" , mode = "vline" )
294
293
fig .add_tools (hover )
@@ -312,6 +311,7 @@ def hist_viz(
312
311
fig .xaxis .axis_label = x_axis_label
313
312
fig .xaxis .axis_label_standoff = 0
314
313
314
+ # Feature analysis here
315
315
if target and target != col and col in df1 .columns and col in df2 .columns :
316
316
col1 , col2 = df1 [col ], df2 [col ]
317
317
source1 , source2 = col1 , col2
@@ -347,7 +347,7 @@ def hist_viz(
347
347
y_range_name = "Averages" ,
348
348
line_width = 4 ,
349
349
)
350
- fig .add_layout (LinearAxis (y_range_name = "Averages" , axis_label = "Bin Averages" ), "right" )
350
+ fig .add_layout (LinearAxis (y_range_name = "Averages" ), "right" )
351
351
return fig
352
352
353
353
0 commit comments