-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass Pandas DataFrame as input #16
Comments
sounds like a good idea (as far as I can tell we have an indirect dependency to pandas through scipy anyway), feel free to contribute that. |
I have no idea how this works :). I'd suggest to pass an argument 'df' to the function, which by default will be False. Otherwise, when df=True, we can just do df.to_dict() requiring that the datetimes are the index and the values are set in the column. It will more of a series than a dataframe, actually. |
Hi, you'd give this a try: def xirr(df, date_column='date', amount_column='amount'): Cheers |
@truebrew May be you can try this approach.
|
Does it sound like a good idea to accept a Pandas DataFrame with Datetimes as indices and values as column as input? It would save the step of converting to dictionary.
The text was updated successfully, but these errors were encountered: