Use cummax
df.High.cummax()
0 954
1 954
2 954
3 955
4 956
5 956
6 956
7 956
Name: High, dtype: int64
df['Max'] = df.High.cummax()
df
More Related Contents:
- error when applying function to a series object
- How to convert index of a pandas dataframe into a column
- Pandas filtering for multiple substrings in series
- df.append() is not appending to the DataFrame
- Is there a simple way to change a column of yes/no to 1/0 in a Pandas dataframe?
- Combining two Series into a DataFrame in pandas
- Convert pandas Series to DataFrame
- Pandas selecting by label sometimes return Series, sometimes returns DataFrame
- how do I calculate a rolling idxmax
- Remove name, dtype from pandas output of dataframe or series
- Convert pandas data frame to series
- What is the fastest and most efficient way to append rows to a DataFrame?
- Using replace efficiently in pandas
- Python Pandas iterate over rows and access column names
- Python Pandas : pandas.to_datetime() is switching day & month when day is less than 13
- Difference between df[x], df[[x]], df[‘x’] , df[[‘x’]] and df.x
- Compare two DataFrames and output their differences side-by-side
- Selecting a row of pandas series/dataframe by integer index
- How do I find the closest values in a Pandas series to an input number?
- How do I count the NaN values in a column in pandas DataFrame?
- getting the index of a row in a pandas apply function
- Tilde sign in pandas DataFrame
- Drop columns whose name contains a specific string from pandas DataFrame
- Python Pandas How to assign groupby operation results back to columns in parent dataframe?
- python Pandas DataFrame copy(deep=False) vs copy(deep=True) vs ‘=’
- Extract column value based on another column in Pandas
- Change the color of text within a pandas dataframe html table python using styles and css
- Remove substring from column based on another column
- start index at 1 for Pandas DataFrame
- Multi Index Sorting in Pandas