To check Daily Volatility of Most Volatile Stocks in 2 min with Python and Web scraping to make Profits

Anupam Singh
3 min readMar 21, 2021

Author : Anupam Singh. His Area of Interest are — Exploratory Data Analysis, Mining Social Web and Data Driven Problem Solving Approach.

For intra-day trading checking Daily volatility is the first step. Excel’ V look- up is one of best option to find Nifty50 stocks,but this method in python saved my time to do daily repetitive task in Excel through Python Automation.

Code block 1
Download relevant CSV file

As we can see above our csv file is downloaded as output.Now it is time to convert this in data frame to read the file.

To set symbols as index column. This helps to do further operations on symbol.

code 5 part -1

Now time for some data wrangling. Convert naming Daily Volatility & Annual Volatility Columns to Daily_Volatility & Yearly_Volatility for easiness. Input[5]

code 5 part -2

One more step before our final Destination . Just Add Symbols name(of our Interest ) in row and Volatility in Columns.

Input-7

Hurray! Now every time in a blink of an eye we can check EOD Nifty 50 Volatility just by running this Jupyter Notebook File. Happy Stock Trading.

Disclaimer: Do Intraday stock trading on own risk

one can find the complete Jupyter Notebook in the author’s GitHub account

GitHub account . check the Volatility_Nifty50 ipnyb file.

Thanks for now. Shall meet again with some interesting python data analysis.

--

--

Anupam Singh

Unique combination of Legal Professional , Patent Agent & Data Analyst . Exploratory Data Analysis, Mining Social Web and Data Driven Problem Solving Approach.