Just a IPython test

Just testing a anaconda jupyter notebook using examples from

https://blog.quantinsti.com/stock-market-data-analysis-python/

I just want to see how well it works with my Nikola blog

In [1]:
import pandas_datareader
pandas_datareader.__version__
Out[1]:
'0.8.0'
In [2]:
import pandas as pd
from pandas_datareader import data
# Set the start and end date
start_date = '1990-01-01'
end_date = '2019-02-01'
# Set the ticker
ticker = 'AMZN'
# Get the data
data = data.get_data_yahoo(ticker, start_date, end_date)
data.head()
Out[2]:
High Low Open Close Volume Adj Close
Date
1997-05-15 2.500000 1.927083 2.437500 1.958333 72156000.0 1.958333
1997-05-16 1.979167 1.708333 1.968750 1.729167 14700000.0 1.729167
1997-05-19 1.770833 1.625000 1.760417 1.708333 6106800.0 1.708333
1997-05-20 1.750000 1.635417 1.729167 1.635417 5467200.0 1.635417
1997-05-21 1.645833 1.375000 1.635417 1.427083 18853200.0 1.427083
In [3]:
import matplotlib.pyplot as plt
%matplotlib inline
data['Adj Close'].plot()
plt.show()
No description has been provided for this image
In [4]:
# Plot the adjusted close price
data['Adj Close'].plot(figsize=(10, 7))
# Define the label for the title of the figure
plt.title("Adjusted Close Price of %s" % ticker, fontsize=16)
# Define the labels for x-axis and y-axis
plt.ylabel('Price', fontsize=14)
plt.xlabel('Year', fontsize=14)
# Plot the grid lines
plt.grid(which="major", color='k', linestyle='-.', linewidth=0.5)
# Show the plot
plt.show()
No description has been provided for this image
In [5]:
# Plot the adjusted close price
data['Adj Close'].plot(figsize=(10, 7))
# Define the label for the title of the figure
plt.title("Adjusted Close Price of %s" % ticker, fontsize=16)
# Define the labels for x-axis and y-axis
plt.ylabel('Price', fontsize=14)
plt.xlabel('Year', fontsize=14)
# Plot the grid lines
plt.grid(which="major", color='k', linestyle='-.', linewidth=0.5)
# Show the plot
plt.show()
No description has been provided for this image

Ride Santa Barbara 100, a climb too far

Well, I actually tried the RIDESB100 this weekend. There where four routes: 39 miles, 100 km, 100 km with Gibraltar, and the century. I did not finish the ride. At around 43 miles and two miles to the top of Gibraltar, my legs gave out. The last climb before the top was just a killer. The final climb before the top was too much. At two miles away from the top, I just did not want to do the last climb. Also, my bike decided that it would not go into the lowest gear.

What I learned:

  • Have my bike checked out before the ride.

  • Have two water bottles on the bike.

  • Have some hydration tablets to put in the water.

  • Have some sort of concentrated calories that is easy to fit in the jersey pocket.

https://www.instagram.com/p/B3z3ZvFBXep/https://www.instagram.com/p/B3zzhbnB12Q/?utm_source=ig_web_copy_link

Night before SB 100

I am going to ride in the Santa Barbara 100. Actually going for the 100 mile ride. Part of me feels like it is hubris on my side to try it as my first ride of this sort. The 100 km or 39 mile right would have been a better choice.

Well, no guts no glory.

October 2019 Pullup Challange

Goal is to get back up to 10 pullups a day. Most challanges start with one and increase by one every day. I am going to try to do it as every third day. Goal is to get to 10 pullups.

Current schedule:

Date

# of Pullups

1-Oct

1

2-Oct

1

3-Oct

2

4-Oct

2

5-Oct

2

6-Oct

3

7-Oct

3

8-Oct

3

9-Oct

4

10-Oct

4

11-Oct

4

12-Oct

5

13-Oct

5

14-Oct

5

15-Oct

6

16-Oct

6

17-Oct

6

18-Oct

7

19-Oct

7

20-Oct

7

21-Oct

8

22-Oct

8

23-Oct

8

24-Oct

9

25-Oct

9

26-Oct

9

27-Oct

10

28-Oct

10

29-Oct

10

30-Oct

11

31-Oct

11

Without Sin

I admit, I am far from being a good Christian. It is a standard that is hard to live by. One quote has been nagging me lately, the other has to go with it.

So when they continued asking him, he lifted up himself, and said unto them, He that is without sin among you, let him first cast a stone at her.

—John 8:7

What follows is:

...And Jesus said unto her, Neither do I condemn thee: go, and sin no more

—John 8:11

Forgiveness, atonement and redemtion is important for a gentle and truly inclusive world.

SBYC Wet Wednesday September 11, 2019 on J70 Escape

Fun race. We actually had some wind. We need to work on being comfortable sailing wing on wing. Wing on wing is a little harry and not even intuitive. Wing on Wing is slower sailing. It is a form of turning an asymmetrical boat into a symmetrical shoot boat. What it does in proper situations is increases VMG.

Bugay Single Hand on Escape 2019

No Sound Time-lapse (1 frame every 0.5 seconds) of me sailing in the Bugay Single Handed Race. Did not make it around Platform C because of the lack of wind and concern that I would not make it back in time . However, the small craft warning actually happen. The wind got up to 20+ on the way in. Motored the last mile be I was having trouble holding the boat down.