Posts by user118799 • 7 points
2 posts
-
0
votes0
answers47
viewsQ: python probability density function
I can’t create a continuous probability density function for a random variable to plot it over the histogram. val = df[['posição', 'num']].groupby('num').agg(lambda x: list(set(x))).reset_index()…
-
-1
votes1
answer42
viewsQ: Add data within a dataframe based on a condition for two columns
I have a DF with four columns. I need to add the values of column 3 when the values of column 1 and 2 are duplicated and discard duplicates. Ex: df = pd.DataFrame({"A": [1,1,1,1,2,2], "B":…