Import the main names to top level.
Project description
QuantEcon.py
A high performance, open source Python code library for economics
from quantecon.markov import DiscreteDP
aiyagari_ddp = DiscreteDP(R, Q, beta)
results = aiyagari_ddp.solve(method='policy_iteration')
Installation
Before installing quantecon
we recommend you install the Anaconda Python distribution, which includes a full suite of scientific python tools. Note: quantecon
is now only supporting Python version 3.5+. This is mainly to allow code to be written taking full advantage of new features such as using the @
symbol for matrix multiplication. Therefore please install the latest Python 3 Anaconda distribution.
Next you can install quantecon by opening a terminal prompt and typing
pip install quantecon
Usage
Once quantecon
has been installed you should be able to import it as follows:
import quantecon as qe
You can check the version by running
print(qe.__version__)
If your version is below what’s available on PyPI then it is time to upgrade. This can be done by running
pip install --upgrade quantecon
Examples and Sample Code
Many examples of QuantEcon.py in action can be found at Quantitative Economics. See also the
QuantEcon.py is supported financially by the Alfred P. Sloan Foundation and is part of the QuantEcon organization.
Downloading the quantecon
Repository
An alternative is to download the sourcecode of the quantecon
package and install it manually from the github repository. For example, if you have git installed type
git clone https://github.com/QuantEcon/QuantEcon.py
Once you have downloaded the source files then the package can be installed by running
pip install flit
flit install
(To learn the basics about setting up Git see this link.)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file quantecon-0.7.1.tar.gz
.
File metadata
- Download URL: quantecon-0.7.1.tar.gz
- Upload date:
- Size: 171.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 801a7d5ff0e944856d04bce8d285b32cf5e7151e4775d2a3ea8c963322559861 |
|
MD5 | bdf1e8c2fc656f1236c350349cd4a7ba |
|
BLAKE2b-256 | 346df31b282b3d48e4518ccbf9f15e8e1b7c04c055c29e604fde6ffae7fe6fb8 |
File details
Details for the file quantecon-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: quantecon-0.7.1-py3-none-any.whl
- Upload date:
- Size: 214.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9447c9909b8ac5993a6325cda142d89906e1435b4785273d68edc62ea6856072 |
|
MD5 | 2fa4e60aa3ab7208e2dfd2793136ce49 |
|
BLAKE2b-256 | 33eae64e1be90daf370f5b190ceb298b9ac92105b3672775dce77acde8ccf603 |