list_1 = [['good',100, 20, 0.2],['bad', 10, 0, 0.0],['change', 1, 2, 2]]
list_1 = [item for item in list_1 if item[2] >= 5 or item[3] >= 0.3]
You can also use if not (item[2] < 5 and item[3] < 0.3)
for the condition if you want.
More Related Contents:
- How to match a string to pattern “Foo-Bar”, where Bar can be any element of a list? [closed]
- Create a dictionary with comprehension
- Find the similarity metric between two strings
- Converting a Pandas GroupBy output from Series to DataFrame
- Split a large pandas dataframe
- How to write a multidimensional array to a text file?
- Getting the SQL from a Django QuerySet [duplicate]
- A logarithmic colorbar in matplotlib scatter plot
- What does pygame.sprite.Group() do
- Replace first occurrence of string in Python
- Convert alphabet letters to number in Python
- Reading two text files line by line simultaneously
- How to handle response encoding from urllib.request.urlopen() , to avoid TypeError: can’t use a string pattern on a bytes-like object
- Process substitution not allowed by Python’s subprocess with shell=True?
- Add column with constant value to pandas dataframe [duplicate]
- How do I read an image from a path with Unicode characters?
- pivot_table No numeric types to aggregate
- How to set up a PostgreSQL database in Django
- How to avoid reinstalling packages when building Docker image for Python projects?
- Maya Python – Using data from UI
- How to find element by part of its id name in selenium with python
- selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities with GeckoDriver, Selenium and Firefox
- “RuntimeWarning: coroutine ‘BotBase.load_extension’ was never awaited” after updating discord.py
- Disable global variable lookup in Python
- How to update Pandas from Anaconda and is it possible to use eclipse with this last
- What’s the purpose of Django setting ‘SECRET_KEY’?
- how to reload a Class in python shell?
- Why django urls end with a slash?
- Openpyxl check for empty cell
- Adding legend based on existing color series