try this:
In [17]: df.val.cumprod()
Out[17]:
a 1
b 2
c 6
d 24
e 120
Name: val, dtype: int64
More Related Contents:
- NumPy or Pandas: Keeping array type as integer while having a NaN value
- Performant cartesian product (CROSS JOIN) with pandas
- Get rows based on distinct values from one column
- Find column whose name contains a specific string
- Creating a new column based on if-elif-else condition
- Pandas DataFrame to List of Dictionaries
- Pandas index column title or name
- Making heatmap from pandas DataFrame
- How to merge two dataframes side-by-side?
- Prepend a level to a pandas MultiIndex
- Vectorizing Haversine distance calculation in Python
- Make Pandas groupby act similarly to itertools groupby
- Python pandas – filter rows after groupby
- Pandas left outer join multiple dataframes on multiple columns
- pandas dataframe, copy by value
- Constructing 3D Pandas DataFrame
- Use Multiple Character Delimiter in Python Pandas read_csv
- Updating value in iterrow for pandas
- Pandas reset index on series to remove multiindex
- Convert dataframe index to datetime
- Boolean Series key will be reindexed to match DataFrame index
- how to merge two data frames based on particular column in pandas python?
- Get first row of dataframe in Python Pandas based on criteria
- How to specify the type of pandas series elements in type hints?
- countplot with normalized y axis per group
- How to use str.contains() with multiple expressions in pandas dataframes
- double quoted elements in csv cant read with pandas
- Pandas: Knowing when an operation affects the original dataframe
- Pandas Secondary Axis
- how to understand closed and label arguments in pandas resample method?