Home>
Data
a
a b
a b b
a b c
a b c d
a a a b
a d d d a
.
At this time, I want to delete the line containing b. At this time,
a
a d d d a
I want to return.
df.drop ('b', axis = 0) did not work.
-
Answer # 1
Related articles
- python - i want to extract lines containing a specific string with pandas
- python - shuffle a few lines of pandas for weekdays and holidays
- python 3x - i want to delete duplicate lines
- python - i want to find the intersection of the lines of the least squares method when the button is pressed
- python - how to delete an apostrophe in the list
- python 3x - the reading of the expression in the excel file in pandas becomes nan
- python - about pandas, gspread
- python - how to break every 5 lines in the list
- python pandas pivot_table is not reflected
- python - how to load multiple time formats with pandas
- i want to delete a partially matching element in a python array
- python - count by element with pivot_table in pandas
- python - shuffle a few lines of dataframes together using pandas
- python - about data analysis in pandas
- i want to read excel data with python and output duplicate lines as csv or excel data
- python - delete bom on the command line
- python - [pandas] how to search for unexpected data
- [python] cannot insert or delete to text box
- python3 extract and delete duplicate data of date and time
- python - merge after pandas pivot
Related questions
- python : How do I assemble a DataFrame?
- python : Pandas DataFrame -split rows into n windows, shift windows by m elements, find average
- python : Write a date frame in a column of which only non-negative values and empty ones
- python : Error reading csv
- Help with kNN visualization, in python
- python : Sorting by multiple columns in a dataframe
- python : Identifying parts of speech and removing unnecessary parts
- python : Get unique values in dataframe rows
- Extract specific columns with Python and email
- python : Add DataFrame to Excel file without overwriting it
Question data is
"a, b, c, d are stored in separate columns" (7x5 DF)
"a, b, c, d are stored in the same column as part of the string" (7x1 DF)
I can't tell which one is, so there are two answers
When "a, b, c, d are stored in separate columns"
"a, b, c, d are stored in the same column as part of the string"
In any case,
Create Boolian list of whether or not
'b'
is included in the lineFilter the original data frame using that list
I think it can be achieved