.
convert_to ได้แบบนี้ # Extract 3 functions that do one thing and do it well def extract_column(column_index, data): try: return [row[column_index] for row in data] except (ValueError, IndexError) as e: return None def remove_row(row_index, data): try: return data[row_index:] except IndexError as e: