Showing posts with label Pandas. Show all posts
Showing posts with label Pandas. Show all posts

Tuesday, December 12, 2017

Convert Date Format In Python | Datetime 'strftime()'| 2017

Python Datetime 'strftime()' | Convert Date to Text Format

01:00 - 03:30 | Get Stock Data With Yahoo Finance
03:31 - 06:04 | Convert Date Format To Text
06:05 - 06:43 | Slicing doesn't work due to keyword "&" "and"

Quick note:

I couldn't slice the dataframe based on column 'df['new_date']' because the keyword "and"
was not used when coding in Python IDLE.

In Sublime Text 3, I used "&" instead of "AND" and the slicing worked.

So, remember to use "and" instead of "&" when coding in Python IDLE.


Sunday, October 16, 2016

Get Stock Historical Data From Yahoo Finance - English + Cantonese Caption (Eng Narration)


Just make a video on this simple technique to grab stocks historical data from Yahoo Finance.

Brief steps are listed below:

Before using your Jupyter Notebook from Anaconda:
1) Conda install pandas-datareader

When you get into Jupyter Notebook:
2) Import all the libraries (datareader, datetime, matplotlib)
3) define date (start & end) as well as the searching method (e.g. yahoo), refer to videos for details
4) ready for plotting and other coding

Tuesday, March 8, 2016

Pandas for Finance

This tutorial walks through the Series and DataFrames functionality of Pandas.

This tutorial is suitable for beginners.

http://quant-econ.net/py/pandas.html