i think the easiest way is looking at rows where all values are not equal to 0:
df[(df != 0).all(1)]
More Related Contents:
- cartesian product in pandas
- Keep other columns when doing groupby
- How to make separator in pandas read_csv more flexible wrt whitespace, for irregular separators?
- Convert the string 2.90K to 2900 or 5.2M to 5200000 in pandas dataframe
- What does `ValueError: cannot reindex from a duplicate axis` mean?
- Reconstruct a categorical variable from dummies in pandas
- Conditionally fill column values based on another columns value in pandas
- Search for String in all Pandas DataFrame columns and filter
- Remove duplicate rows from Pandas dataframe where only some columns have the same value
- Normalize columns of a dataframe
- Rename result columns from Pandas aggregation (“FutureWarning: using a dict with renaming is deprecated”)
- Quickest way to make a get_dummies type dataframe from a column with a multiple of strings
- Python Pandas, write DataFrame to fixed-width file (to_fwf?)
- Using numpy.genfromtxt to read a csv file with strings containing commas
- Plot correlation matrix using pandas
- Insert a Pandas Dataframe into mongodb using PyMongo
- How to check whether a pandas DataFrame is empty?
- Copy pandas dataframe to excel using openpyxl
- Finding label location in a DataFrame Index
- pandas fill missing dates in time series
- Truncate `TimeStamp` column to hour precision in pandas `DataFrame`
- Querying for NaN and other names in Pandas
- Pandas Dataframe to Excel Sheet
- Upgrade version of Pandas
- pandas: slice a MultiIndex by range of secondary index
- Remove row with null value from pandas data frame
- Can Pandas read and modify a single Excel file worksheet (tab) without modifying the rest of the file?
- Easiest way to read csv files with multiprocessing in Pandas
- Python Pandas add column for row-wise max value of selected columns [duplicate]
- Pandas: Nesting Dataframes