Skip to content
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

Create publishable data #13

Open
korenmiklos opened this issue Jul 9, 2019 · 2 comments
Open

Create publishable data #13

korenmiklos opened this issue Jul 9, 2019 · 2 comments

Comments

@korenmiklos
Copy link
Member

Clean .csv files with good variable names.
exporter, importer, year, kullback_leibler_divergence, trade_similarity_index.
Maybe separate fields for 4- and 6-digit calculations.
Keep this as a bead, saving code, too. Short clean README.

@korenmiklos
Copy link
Member Author

Sample below

declarant,partner,flow,year,kullback_leibler_divergence,trade_similarity_index
DE,RU,export,2014,0.632,0.924,

@korenmiklos
Copy link
Member Author

korenmiklos commented Jul 9, 2019

THETA = 8.0
df['trade_similarity_index'] = pd.np.exp(-1/THETA * data['kullback_leibler_divergence'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant