MCPcopy
hub / github.com/AutoViML/AutoViz / list_difference

Function list_difference

autoviz/AutoViz_Utils.py:1308–1313  ·  view source on GitHub ↗
(l1, l2)

Source from the content-addressed store, hash-verified

1306# Subtract RIGHT_LIST from LEFT_LIST to produce a new list
1307### This program is USED VERY HEAVILY so be careful about changing it
1308def list_difference(l1, l2):
1309 lst = []
1310 for i in l1:
1311 if i not in l2:
1312 lst.append(i)
1313 return lst
1314
1315
1316######## Find ANY word in columns to identify ANY TYPE OF columns

Callers 4

AutoViz_MainMethod · 0.90
draw_barplotsFunction · 0.85
classify_print_varsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected