In [5]:
import pandas as pd
test = {
383: 3.000000,
663: 1.000000,
726: 1.000000,
737: 9.000000,
833: 8.166667
}
s = pd.Series(test)
s = s[s != 1]
s
Out[0]:
383 3.000000
737 9.000000
833 8.166667
dtype: float64
More Related Contents:
- Aggregation in Pandas
- Pandas Melt Function
- How do I find the closest values in a Pandas series to an input number?
- How to display custom values on a bar plot
- How do I count the NaN values in a column in pandas DataFrame?
- Dummy variables when not all categories are present
- getting the index of a row in a pandas apply function
- Recursive definitions in Pandas
- Tilde sign in pandas DataFrame
- Drop columns whose name contains a specific string from pandas DataFrame
- Pivoting a Pandas Dataframe containing strings – ‘No numeric types to aggregate’ error
- Python Pandas How to assign groupby operation results back to columns in parent dataframe?
- Panda’s Write CSV – Append vs. Write
- Convert Pandas Series to DateTime in a DataFrame
- Expanding pandas data frame with date range in columns
- Convert a columns of string to list in pandas
- Loading multiple csv files of a folder into one dataframe
- Why is np.where faster than pd.apply
- Improve subplot size/spacing with many subplots
- Extract column value based on another column in Pandas
- Python Pandas: Get index of rows where column matches certain value
- Change the color of text within a pandas dataframe html table python using styles and css
- Pandas and Matplotlib – fill_between() vs datetime64
- How to solve import error for pandas?
- Dynamically filtering a pandas dataframe
- pandas – scatter plot with different color legend for each point
- Pandas: parse merged header columns from Excel
- Remove substring from column based on another column
- Selecting a range of columns in a dataframe
- Pandas min() of selected row and columns