Skip to content

Commit 1ccae64

Browse files
cleanup examples folder
1 parent 3c22782 commit 1ccae64

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

examples/test_df.rolling.ipynb renamed to examples/scratch_pad/test_df.rolling.ipynb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
}
182182
],
183183
"source": [
184-
"idf = pd.read_csv('data/SP500_NOV2019_IDay.csv',index_col=0,parse_dates=True)\n",
184+
"idf = pd.read_csv('../data/SP500_NOV2019_IDay.csv',index_col=0,parse_dates=True)\n",
185185
"idf = idf.drop('Volume',axis=1) # Volume is zero anyway for this intraday data set\n",
186186
"idf.index.name = 'Date'\n",
187187
"idf.shape\n",
@@ -507,7 +507,7 @@
507507
{
508508
"data": {
509509
"text/plain": [
510-
"<matplotlib.axes._subplots.AxesSubplot at 0x7f5bddab70b8>"
510+
"<matplotlib.axes._subplots.AxesSubplot at 0x7f2ad2e9d860>"
511511
]
512512
},
513513
"execution_count": 12,
@@ -712,16 +712,16 @@
712712
},
713713
{
714714
"cell_type": "code",
715-
"execution_count": 17,
715+
"execution_count": 14,
716716
"metadata": {},
717717
"outputs": [],
718718
"source": [
719-
"df.to_csv('data/SP500_20191106_IDayBollinger.csv')"
719+
"df.to_csv('../data/SP500_20191106_IDayBollinger.csv')"
720720
]
721721
},
722722
{
723723
"cell_type": "code",
724-
"execution_count": 14,
724+
"execution_count": 15,
725725
"metadata": {},
726726
"outputs": [
727727
{
@@ -741,7 +741,7 @@
741741
},
742742
{
743743
"cell_type": "code",
744-
"execution_count": 15,
744+
"execution_count": 16,
745745
"metadata": {},
746746
"outputs": [],
747747
"source": [
@@ -750,7 +750,7 @@
750750
},
751751
{
752752
"cell_type": "code",
753-
"execution_count": 16,
753+
"execution_count": 17,
754754
"metadata": {},
755755
"outputs": [
756756
{
@@ -774,12 +774,12 @@
774774
"metadata": {},
775775
"outputs": [],
776776
"source": [
777-
"dftest = pd.read_csv('data/SP500_20191106_IDayBollinger.csv',index_col=0,parse_dates=True)"
777+
"dftest = pd.read_csv('../data/SP500_20191106_IDayBollinger.csv',index_col=0,parse_dates=True)"
778778
]
779779
},
780780
{
781781
"cell_type": "code",
782-
"execution_count": 20,
782+
"execution_count": 19,
783783
"metadata": {},
784784
"outputs": [
785785
{
@@ -860,7 +860,7 @@
860860
"2019-11-06 09:32:00 3073.42 3071.78 3073.42 3071.74 NaN NaN"
861861
]
862862
},
863-
"execution_count": 20,
863+
"execution_count": 19,
864864
"metadata": {},
865865
"output_type": "execute_result"
866866
},
@@ -948,7 +948,7 @@
948948
"2019-11-06 16:00:00 3073.277938 "
949949
]
950950
},
951-
"execution_count": 20,
951+
"execution_count": 19,
952952
"metadata": {},
953953
"output_type": "execute_result"
954954
}
@@ -960,16 +960,16 @@
960960
},
961961
{
962962
"cell_type": "code",
963-
"execution_count": 24,
963+
"execution_count": 20,
964964
"metadata": {},
965965
"outputs": [
966966
{
967967
"data": {
968968
"text/plain": [
969-
"<matplotlib.axes._subplots.AxesSubplot at 0x7f5bd97d8ef0>"
969+
"<matplotlib.axes._subplots.AxesSubplot at 0x7f2aceba67b8>"
970970
]
971971
},
972-
"execution_count": 24,
972+
"execution_count": 20,
973973
"metadata": {},
974974
"output_type": "execute_result"
975975
},

examples/tplot.py renamed to examples/scratch_pad/tplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pandas as pd
2-
daily = pd.read_csv('data/SP500_NOV2019_Hist.csv',index_col=0,parse_dates=True)
2+
daily = pd.read_csv('../data/SP500_NOV2019_Hist.csv',index_col=0,parse_dates=True)
33
daily.head(3)
44

55
# idf = pd.read_csv('data/SP500_NOV2019_IDay.csv',index_col=0,parse_dates=True)
@@ -14,6 +14,6 @@
1414
mpf.plot(daily,mav=7)
1515
mpf.plot(daily,volume=True)
1616

17-
df = pd.read_csv('data/yahoofinance-SPY-20080101-20180101.csv',index_col=0,parse_dates=True)
17+
df = pd.read_csv('../data/yahoofinance-SPY-20080101-20180101.csv',index_col=0,parse_dates=True)
1818
mpf.plot(df[700:850],type='bars',no_xgaps=True,mav=(20,40),figscale=0.7)
1919
mpf.plot(df[700:850],type='bars',volume=True,no_xgaps=True,mav=(20,40),figscale=0.7)

0 commit comments

Comments
 (0)