Datasets:
				
			
			
	
			
			
	
		
		Upload heart.py
Browse files
    	
        heart.py
    CHANGED
    
    | @@ -153,10 +153,8 @@ class Heart(datasets.GeneratorBasedBuilder): | |
| 153 |  | 
| 154 | 
             
                    data = data.astype({"is_male": bool, "has_exercise_induced_angina": bool})
         | 
| 155 |  | 
| 156 | 
            -
                     | 
| 157 | 
            -
                     | 
| 158 | 
            -
                    print(data.number_of_major_vessels_colored_by_flourosopy.unique())
         | 
| 159 | 
            -
                    print(data.thal.unique())
         | 
| 160 |  | 
| 161 | 
             
                    for row_id, row in data.iterrows():
         | 
| 162 | 
             
                        data_row = dict(row)
         | 
|  | |
| 153 |  | 
| 154 | 
             
                    data = data.astype({"is_male": bool, "has_exercise_induced_angina": bool})
         | 
| 155 |  | 
| 156 | 
            +
                    data = data[data.thal != "?"]
         | 
| 157 | 
            +
                    data = data[data.number_of_major_vessels_colored_by_flourosopy != "?"]
         | 
|  | |
|  | |
| 158 |  | 
| 159 | 
             
                    for row_id, row in data.iterrows():
         | 
| 160 | 
             
                        data_row = dict(row)
         |