Giter Club home page Giter Club logo

articles's Introduction

articles's People

Contributors

brendanmartin avatar tmthyjames avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

articles's Issues

x = np.arange(len(y))

article-resources/K-Means Clustering/K-Means Clustering.ipynb

This line is giving the following error
x = np.arange(len(y))
NameError: name 'y' is not defined,

Error in path to read.csv

In this part:

unemployment = pd.read_csv('/Users/tdobbins/Downloads/hpi/unemployment-macro.csv')

Actually the correct path is:

unemployment = pd.read_csv('/Users/tdobbins/Downloads/hpi/unemployment.csv')

@contextmanager in Guide to Using Databases with Python Postgres, SQLAlchemy, and Alembic

Hi Brendan, how are you doing?

Regarding the article Guide to Using Databases with Python Postgres, SQLAlchemy, and Alembic, I applied this in my project:

from contextlib import contextmanager

@contextmanager
def session_scope():
    session = Session()
    try:
        yield session
        session.commit()
    except Exception:
        session.rollback()
        raise
    finally:
        session.close()

but now, when I try to query something to pass to my service layer, I'm getting this error:
sqlalchemy.orm.exc.DetachedInstanceError: Instance <Driver at 0x7f5ce0464c40> is not bound to a Session; attribute refresh operation cannot proceed (Background on this error at: http://sqlalche.me/e/14/bhk3)

this is my code:

def find_all(model, skip: int = 0, limit: int = 0):
    with session_scope() as db:
        r = db.query(model).offset(skip).limit(limit).all()
        return r

Can you help me to understand whats is happing?

Yahoo Finance not working

Hi,

I tried your yahoo finance api notebook example. Apparently, the yahoo fetch is not working anymore. It says "
RemoteDataError: No data fetched using 'YahooDailyReader'". Could you please check it out? thanks

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.