Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fridiculous/ipython-workbench

personal utility functions for data and analytics
https://github.com/fridiculous/ipython-workbench

Last synced: 9 days ago
JSON representation

personal utility functions for data and analytics

Awesome Lists containing this project

README

        

personal ipython workbench
=========

Contains scripts, utility librarys and packages that I'm commonly using for datascience and analytics

This is made for python3

## Installation

```
git clone [email protected]:fridiculous/ipython-workbench.git
```

### Prereqs

as for a local installation for mac os 10.9+

```
# make sure python 2 is up to date
brew update
brew upgrade python
pip install virtualenv --upgrade
pip install virtualenvwrapper --upgrade
```

```
# install python3 and make virtual environment called 'data3'
brew install python3
mkvirtualenv -p /usr/local/bin/python3 data3
```

### Installation for packages:

```
workon data3
pip install -r requirements.txt
```

## Usage

e.g. pulling a pandas dataframe from a postgres database

```
from connect_to_db import ConnectToDB
cdb = ConnectToDB()

df = cdb.get_query('SELECT * FROM users LIMIT 10')
```