Skip to main content

Posts

Showing posts from March, 2023

Get/Access JIRA/JIRA API data using python

 Below is the program which will guide you on how to access the JIRA API data using python. First, you need to create a token for JIRA. You need to install the following libraries using the following commands: pip install requests pip install json-excel-converter And the code is: # Import the required libraries import requests from requests.auth import HTTPBasicAuth import json import pandas as pd from json_excel_converter import Converter from json_excel_converter.xlsx import Writer # URL to Search all issues. url = "YOUR JIRA URL" # Create an authentication object,using # registered emailID, and, token received. auth = HTTPBasicAuth("email-d",                      "jira token created") # The Header parameter, should mention, the # desired format of data. headers = {     "Accept": "application/json" } # Mention the JQL query. # Here, all issues, of a project, are # fetched,as,no criteria is mentioned. query = { ...

Compare Stock data in Python and Compare using charts

 Here is a program which compare the multiple stock/equity data using python and plot a graph for there performances for more than one year date range. I have used NSE stocks data such as Reliance, ITC and TCS companies stock data to do the comparison. First you need to install the Yahoo finance using following command: pip install yahoo-finance Please find the below code for the stock comparsion: # Import yfinance package import yfinance as yf import matplotlib.pyplot as plt # Get the data for the SPY (an ETF on the S&P 500 index) and the stock Apple by specifying the stock ticker, start date, and end date data = yf.download(['RELIANCE.NS', 'ITC.NS', 'TCS.NS'],'2022-01-01','2023-03-18') # Plot the adjusted close prices data["Adj Close"].plot() plt.show() Output for code is:

Get Stock data using python and plot a graph for stock analysis using python

 Below is the program to guide you how to get then Stock data using python and plot a graph for stock analysis using python. I took the NSE stock data using python. I used yahoo finance for the same. First you need to install Yahoo finance using following command: pip install yahoo-finance The below is the code: # Import yfinance package import yfinance as yf import matplotlib.pyplot as plt # Set the start and end date start_date = '2022-01-01' end_date = '2023-03-18' # Set the ticker ticker = 'HDFCBANK.NS' # Get the data data = yf.download(ticker, start_date, end_date) print(data) data.tail() # Plot adjusted close price data data['Adj Close'].plot() plt.show() # 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('...

Design and Implement 8:1 MUX using IC-74LS153 & Verify its Truth Table

Laboratory Manual (2019 Pattern)          Program Outcomes: PO 1. Engineering knowledge : Apply the knowledge of mathematics, science, engineering fundamentals, and an engineering specialization to the solution of complex engineering problems.   PO 2. Problem analysis : Identify, formulate, review research literature, and analyze complex engineering problems reaching substantiated conclusions using first principles of mathematics, natural sciences, and engineering sciences.   PO 3. Design/development of solutions : Design solutions for complex engineering problems and design system components or processes that meet the specified needs with appropriate consideration for the public health and safety, and the cultural, societal, and environmental considerations.   PO 4. Conduct investigations of complex problems : Use research-based knowledge and research methods inclu...