python Condition extraction from a list that I often forget

Note that I often forget how to extract columns conditionally from pandas column names

new_list = [x for x in data.columns if 'liquid_' in x]

Recommended Posts

python Condition extraction from a list that I often forget
python / Make a dict from a list.
Python list comprehensions that are easy to forget
"Python Kit" that calls a Python script from Swift
I made a Docker image that can call FBX SDK Python from Node.js
In Python, I made a LINE Bot that sends pollen information from location information.
String manipulation with python & pandas that I often use
I tried running python etc. from a bat file
I made a VM that runs OpenCV for Python
From a book that programmers can learn ... (Python): Pointer
[Python] I want to make a nested list a tuple
A memo that I touched the Datastore with python
Python3 comprehension (List, dictionary) that I have seen somewhere
A python script that gets the number of jobs for a specified condition from
A template that I often use when making Discord BOT in Python (memorial note)
A memo that reads data from dashDB with Python & Spark
[Python] I started Poetry & Impression that I moved from Pipenv to poetry
From a book that programmers can learn ... (Python): About sorting
I want to start a lot of processes from python
From a book that programmers can learn (Python): Decoding messages
Since Python 1.5 of Discord, I can't get a list of members
I tried "a program that removes duplicate statements in Python"
Python list is not a list
I tried to make a generator that generates a C # container class from CSV with Python
I want to send a message from Python to LINE Bot
Python: Create a dictionary from a list of keys and values
I made a python text
A Python program that aggregates time usage from icalendar data
[Python3] List of sites that I referred to when I started Python
Extract the value closest to a value from a Python list element
[Graduation from article scattering] I tried to develop a service that can list articles by purpose
I made a garbled generator that encodes favorite sentences from UTF-8 to Shift-JIS (cp932) in Python
A story that I was addicted to calling Lambda from AWS Lambda.
[Python] I made a Line bot that randomly asks English words.
I made a package that can compare morphological analyzers with Python
I want to use a wildcard that I want to shell with Python remove
A story that I fixed when I got Lambda logs from Cloudwatch Logs
[Python] A memo that I tried to get started with asyncio
I tried to create a list of prime numbers with python
From a book that programmers can learn (Python): Find the mode
From a book that programmers can learn ... (Python): Review of arrays
I made a shuffle that can be reset (reverted) with Python
[Python algorithm] A program that outputs Sudoku answers from a depth-first search
I want to make a parameter list from CloudFormation code (yaml)
Pass a list by reference from Python to C ++ with pybind11
How to remove duplicates from a Python list while preserving order.
I made a library that adds docstring to a Python stub file.
[python] I made a class that can write a file tree quickly
[Python] A program that rotates the contents of the list to the left
From a book that programmers can learn (Python): Statistical processing-deviation value
Call a Python function from p5.js.
[python] Manage functions in a list
I made a Line-bot using Python!
I made a fortune with Python.
Linux commands that you often forget
Python3> List generation from iterable> list (range (5))
I made a daemon with Python
I created a template for a Python project that can be used universally
[Python] I made a decorator that doesn't seem to have any use.
I made a web application in Python that converts Markdown to HTML
A story I was addicted to when inserting from Python to a PostgreSQL table