Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkittredge committed Sep 22, 2015
1 parent 370f5bd commit 1303bba
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions python_client_api_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": 1,
"metadata": {
"collapsed": true
"collapsed": false
},
"outputs": [
{
Expand All @@ -30,7 +30,7 @@
}
],
"source": [
"import calcbench as cb #Calcbench Python API client, @https://github.com/calcbench/python_api_client\n",
"import calcbench as cb #https://github.com/calcbench/python_api_client\n",
"%pylab inline"
]
},
Expand Down Expand Up @@ -61,18 +61,18 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes.AxesSubplot at 0x97e68f0>"
"<matplotlib.axes.AxesSubplot at 0xaa4d4f0>"
]
},
"execution_count": 30,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -241,7 +241,7 @@
"AACAyQhqAAAAkxHUAAAAJiOoAQAATEZQAwAAmMz/BxO1yvd1ZUMUAAAAAElFTkSuQmCC\n"
],
"text/plain": [
"<matplotlib.figure.Figure at 0x97e6e30>"
"<matplotlib.figure.Figure at 0xaa4dd30>"
]
},
"metadata": {},
Expand All @@ -254,6 +254,30 @@
"quarter_corr.hist(bins=50, figsize=(15, 10))"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"MultiIndex(levels=[['accountsreceivable', 'revenue'], ['A', 'AA', 'AAPL', 'ABBV', 'ABC', 'ABT', 'ACE', 'ACN', 'ACT', 'ADBE', 'ADI', 'ADM', 'ADP', 'ADS', 'ADSK', 'ADT', 'AEE', 'AEP', 'AES', 'AET', 'AFL', 'AGN', 'AIG', 'AIV', 'AIZ', 'AKAM', 'ALL', 'ALLE', 'ALTR', 'ALXN', 'AMAT', 'AME', 'AMG', 'AMGN', 'AMP', 'AMT', 'AMZN', 'AN', 'ANTM', 'AON', 'APA', 'APC', 'APD', 'APH', 'ARG', 'ATI', 'AVB', 'AVGO', 'AVP', 'AVY', 'AXP', 'AZO', 'BA', 'BAC', 'BAX', 'BBBY', 'BBT', 'BBY', 'BCR', 'BDX', 'BEN', 'BFB', 'BHI', 'BIIB', 'BK', 'BLK', 'BLL', 'BMY', 'BRCM', 'BRKA', 'BSX', 'BWA', 'BXP', 'C', 'CA', 'CAG', 'CAH', 'CAM', 'CAT', 'CB', 'CBG', 'CBS', 'CCE', 'CCI', 'CCL', 'CELG', 'CERN', 'CF', 'CFN', 'CHK', 'CHRW', 'CI', 'CINF', 'CL', 'CLX', 'CMA', 'CMCSA', 'CME', 'CMG', 'CMI', ...]],\n",
" labels=[[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, ...]],\n",
" names=['metric', 'ticker'])"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"quarterly_data.columns"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 1303bba

Please sign in to comment.