Giter Club home page Giter Club logo

python-bootcamp's Introduction

Python & Machine Learning Bootcamp Homework

This repository contains solutions to the homework assignments from a Python Bootcamp. The homework assignments cover various topics, including matrix operations, Fibonacci sequence calculation, data clustering with KMeans, web scraping, data visualization, and more.

Homework 1: Matrix Operations and Fibonacci Sequence

  • File: fib_matrix.py

The fib_matrix.py file contains two functions: matrix_carp() and fib(). The matrix_carp() function performs matrix multiplication between two 2x2 matrices, and the fib() function calculates the nth Fibonacci number using matrix exponentiation. The power() function is also used in the Fibonacci calculation.

Homework 2: Data Clustering with KMeans

  • File: k-means.py

The k-means.py file demonstrates data clustering using KMeans from the scikit-learn library. The Iris dataset from scikit-learn is used for clustering. The data is plotted and clustered into three groups using KMeans algorithm.

Homework 3: Web Scraping and Data Visualization

  • File: currency.py

The currency.py file showcases web scraping using BeautifulSoup and requests libraries to extract currency exchange rate data for Sterling (GBP) from a website. The extracted data is then visualized using pandas, matplotlib, and seaborn libraries, showing the buying and selling rates of GBP from various banks.

Requirements

To run the code in this repository, you will need the following libraries installed:

  • pandas
  • tweepy (for web scraping)
  • nltk (for text mining)
  • textblob (for sentiment analysis)
  • numpy (for matrix operations)
  • matplotlib (for data visualization)
  • seaborn (for data visualization)
  • scikit-learn (for KMeans clustering)
  • BeautifulSoup (for web scraping)
  • requests (for web scraping)

How to Use

Clone or download this repository to your local machine. Run the Python files using your Python environment (e.g., Jupyter Notebook, PyCharm, or any IDE supporting Python). Ensure you have the required libraries installed before running the code. If not, use pip install to install the missing libraries.

python-bootcamp's People

Contributors

meltemkenis avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.