Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Assisting utility functions for calculation of Private Equity Public Market Equivalent (PME) measures using Python. Natively compatible with Preqin data format.

License

NotificationsYou must be signed in to change notification settings

Maween/PyPME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assisting utility functions for calculation of Private Equity PME measures using Python. Natively compatible with Preqin data format.

Example code:

foridx,fundincf_funds.iterrows():fund_cf=cf_data[cf_data['Fund ID']==fund['Fund ID']].copy()cf_funds.loc[idx,'local_KSPME']=pypme.KS_PME(fund_cf["Transaction Date"],fund_cf["Transaction Amount"],fund_cf["Transaction Category"],local_index.iloc[:,0],local_index.iloc[:,1])cf_funds.loc[idx,'DirectAlpha']=pypme.Direct_Alpha_PME(fund_cf["Transaction Date"],fund_cf["Transaction Amount"],fund_cf["Transaction Category"],local_index.iloc[:,0],local_index.iloc[:,1])cf_funds.loc[idx,'PME+']=pypme.PME_PLUS(fund_cf["Transaction Date"],fund_cf["Transaction Amount"],fund_cf["Transaction Category"],local_index.iloc[:,0],local_index.iloc[:,1])

Wherecf_data is the cashflow data imported from Preqin usingpd.read_csv('preqin_cf_file.csv'), andlocal_index is a 2-column DataFrame in the format [Date|Index_Value].

The code above iterates over all unique funds in the file, and assigns the metric on a per-fund basis, usinglocal_index as the basis for discount factor.

The library automatically finds the closest index dates for a given cash flow, and thus day-for-day index data is not required for the code to run properly (albeit, better resolution does obviously increase accuracy).

About

Assisting utility functions for calculation of Private Equity Public Market Equivalent (PME) measures using Python. Natively compatible with Preqin data format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp