Question: code def filter _ table _ by _ value ( table , column _ label, value ) : ( list , Any,

code def filter_table_by_value(table, column_label, value):
"""
(list, Any, Any)-> list
returns the sub-table of table containing only the rows in which have a value == value
in the column labelled with column_label
>>> t =[['A','B','C','F'],['1','2','3',0],['4','5','6',1],['4','5','6',0]]
>>> filter_table_by_value(t,'F',0)
[['A','B','C','F'],['1','2','3',0],['4','5','6',0]]
>>> filter_table_by_value(t,'F',1)
[['A','B','C','F'],['4','5','6',1]]
>>> filter_table_by_value(t,'F',0.99)
[['A','B','C','F']]
""" in python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!