python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
calculate weighted.mean() for X variable with two W variables
I have an issue where I am trying to transform a data frame into a summarized data frame with total sums and weighted averages based on multiple columns...
Below is an example of what I am doing...
df...
peprika
Votes: 0
Answers: 0
How to Calculate Median EWM in Pandas Dataframe?
Pandas does not have the option to calculate Median EWM for a timeseries DataFrame. Does anyone have a work around?
df.ewm().mean() # This function exists in Pandas
df.ewm().std() # This functi...
albz
Votes: 0
Answers: 1
Adjust prices on stock portfolio based on quantity and price
I am trying to adjust my portfolio of stocks and trying to calculate the adjusted mean price (which is a form of weighted-average).
Here is sample data:
import pandas as pd
import numpy as np
sampl...
Allan
Votes: 0
Answers: 1
MySQL / BigQuery - Weighted Average & Group By
I am trying to calculate a weighted average of a dataset and return the maximum value, monthly over a period of 12 months along with its' corrosponding ticket description.
I'm aware that there are ton...
deeded344
Votes: 0
Answers: 1