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)
How can we find the IRR of cash flows in a Dataframe?
I can easily find the NPV if items in a dataframe using the code below. But how can I get the IRR of the same items?
import numpy_financial as npf
import pandas as pd
# Intitialise data of lists
data...
ASH
Votes: 0
Answers: 2
Event study with multiple event dates and multiple companies in R
I am trying to run an financial event study, and after reading several posts and packages I still don't know how to handle my problem.
I have three dataframes:
Multiple Event dates for multiple firms...
BalDaBer
Votes: 0
Answers: 1
Create multiple dataframes with a loop in Python
So I got this part of code that I want to make shorter:
df_1 = investpy.stocks.get_stock_recent_data('Eco','Colombia',False)
df_2 = investpy.stocks.get_stock_recent_data('JPM','United States',False)
d...
Tomaxto
Votes: 0
Answers: 1
How can i calculate the total percentage change in a portfolio(assume 100 buy in)if i have a list which shows each percentage change of each trade?
I am using the following code but I am missing something
percentagechange = [-2.704974336321264, -9.75579724548381, 161.1083287764476, -2.3049580623481725, -3.2221603096622586, -2.03531529638451, -6.4...
Paddy Connolly
Votes: 0
Answers: 2