Giter VIP home page Giter VIP logo

million-song-dataset-hdf5-to-csv's Introduction

Million-Song-Dataset-HDF5-to-CSV,

Million Song Dataset HDF5 to CSV Converter, Alexis Greenstreet

The code in "msdHDF5toCSV.py" is designed to convert the HDF5 files of the Million Song Dataset to a CSV by extracting various song properties.

The script writes to a "SongCSV.csv" in the directory containing this script.

Please note that in the current form, this code only extracts the following information from the HDF5 files: AlbumID, AlbumName, ArtistID, ArtistLatitude, ArtistLocation, ArtistLongitude, ArtistName, Danceability, Duration, KeySignature, KeySignatureConfidence, SongID, Tempo, TimeSignature, TimeSignatureConfidence, Title, and Year.

Additional Files: The code requires the use "HDF5_getters.py", written by Thierry Bertin-Mahieux at Columbia University, copyright 2010. This file makes use of the python libraries numpy (Numerical Python) and tables (PyTables/Python Tables), which aid in dealing with a hierarchical format such as HDF5.

Python: This code was tested with a Python interpreter with version 2.7.9.

Necessary Python Libraries: The file "HDF5_getters.py" uses python libraries NumPy and PyTables. You can get the python library NumPy (Numerical Python) here: "www.numpy.org" > "http://www.scipy.org/scipylib/download.html". You can get python library tables (PyTables/Python Tables) here: "http://www.pytables.org/" > "http://www.pytables.org/downloads.html".

NumPy and PyTables Notes: I had significant difficulties installing NumPy and PyTables, so I eventually decided to use the Python IDE Canopy by Enthought, which included NumPy and had the ability to download PyTables. Other IDEs such as Python(x,y) may also be helpful. If you choose to not use an IDE, you may need a C and FORTRAN compiler to install NumPy and/or PyTables. If you are using Windows, you may be interested in the Minimalist GNU for Windows project: http://www.mingw.org/.

million-song-dataset-hdf5-to-csv's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.