awesome-data icon indicating copy to clipboard operation
awesome-data copied to clipboard

[finances] Investor Flow of Funds

Open rufuspollock opened this issue 10 years ago • 8 comments

Data on flows into and out of funds in the US from http://www.ici.org/research/stats

rufuspollock avatar May 25 '14 20:05 rufuspollock

FIXED. See http://data.okfn.org/data/core/investor-flow-of-funds-us

rufuspollock avatar Aug 03 '14 09:08 rufuspollock

All packaged up https://github.com/datasets/investor-flow-of-funds-us but needs a maintainer!

rufuspollock avatar Feb 08 '15 13:02 rufuspollock

I can take care of it, data needs to be collected every first day of the month?

EnricGTorrents avatar Mar 19 '15 05:03 EnricGTorrents

@EnricGTorrents that's right - you need to run the script every month or less (that way we get full weekly data). Do you want to try running the script now and submitting a pull request. I can then give you full write access to the repo: https://github.com/datasets/investor-flow-of-funds-us

rufuspollock avatar Mar 19 '15 06:03 rufuspollock

Got these errors with dataconverters and messytables when running the script on Python 3.4.3:

Traceback (most recent call last):
  File "C:\Users\Research Computer\Desktop\Open Knowledge Foundation\investor-flow-of-funds-us\scripts\process.py", line 6, in <module>
    from dataconverters import xls
  File "C:\Python34\lib\site-packages\dataconverters\__init__.py", line 3, in <module>
    import dataconverters.commas as dcsv
  File "C:\Python34\lib\site-packages\dataconverters\commas.py", line 5, in <module>
    from messytables import (
  File "C:\Python34\lib\site-packages\messytables\__init__.py", line 3, in <module>
    from messytables.headers import headers_guess, headers_processor, headers_make_unique
  File "C:\Python34\lib\site-packages\messytables\headers.py", line 18
    return max(counts.items(), key=lambda (k, v): v)[0]
                                          ^
SyntaxError: invalid syntax

Right now I am on Windows 8, I will try again later on another platform and / or Python version. Not sure what is causing the problem, any suggestions on how to proceed?

EnricGTorrents avatar Mar 20 '15 15:03 EnricGTorrents

Ok, managed to run the script in Linux (Debian Wheezy) with Python 2.7.3. I will now send a pull request with the data.

Seems that the problem on Win8 / Python 3.4 had to do with lxml. Note that the package unicodecsv is required but not included in the requirements.txt (pip install unicodecsv). I also had to install lxml before running the pip command: apt-get install libxml2-dev libxslt1-dev python-dev / apt-get install python-lxml

EnricGTorrents avatar Mar 20 '15 17:03 EnricGTorrents

@EnricGTorrents how are you doing here? Would be great to have you as maintainer here.

/cc @Yannael are you happy to follow up to support @EnricGTorrents here if he has any problems?

rufuspollock avatar Apr 26 '15 18:04 rufuspollock

@rgrp sure @EnricGTorrents Let me know if I can help

Yannael avatar Apr 28 '15 05:04 Yannael