Python code for YouTube videos.

Related tags

Miscellaneous Python
Overview

#This is a open source project.

Python 3

These files are mainly intended to accompany my series of YouTube tutorial videos here, https://www.youtube.com/user/joejamesusa and are mainly intended for educational purposes. You are invited to subscribe to my video channel-Joe James, and to download and use any code in this Python repository, according to the MIT License. Feel free to post any comments on my YouTube channel. I am very happy to see you there on my you tube channel. excited!!!!!!!!!

Subscribe to my channel for more tutorial videos.

This source code is easy to understand and reliable for self study and you will learn them easily, try to practice more coding by making algorithms yourself and you can become a better Python programmer, and remember "Try to learn something about everything and everything about something".

Thank you for reviewing my repositories and keep practicing. Joe James. Fremont, CA. Copyright (C) 2015-2021, Joe James

Happy coding guys! 😀

Comments
  • Update Mergesort.py

    Update Mergesort.py

       There is something wrong with this code, when you run this code, it will say 'NameError: name 'A' is not defined'.
    

    !!!!!!!!!! The parameters in other functions will also need to change!!!!!! In order to fix this, I think you can add a parameter 'last', instead of setting 'last' as default, since that will cause the NameError.

    opened by zxr445116086 4
  • Doubly Linked List - remove error

    Doubly Linked List - remove error

    I don't believe the else statement self.root = this_node in the below remove function is correct. If there is no previous node, that means you are at the root; and the root should be set to next not this_node

        def remove (self, d):
            this_node = self.root
    
            while this_node:
                if this_node.get_data() == d:
                    next = this_node.get_next()
                    prev = this_node.get_prev()
                    
                    if next:
                        next.set_prev(prev)
                    if prev:
                        prev.set_next(next)
                    else:
                        self.root = this_node
                    self.size -= 1
                    return True		# data removed
                else:
                    this_node = this_node.get_next()
            return False  # data not found
    
    opened by herman5 4
  • What if i want to find the height of the BST ?

    What if i want to find the height of the BST ?

    Is this the right approach ?

    class node:
        def getHeight(self):
            if self is None:
                return -1
            return 1 + max(self.leftChild.getHeight(), self.rightChild.getHeight())
    
    class Tree:
        def getHeight(self):
            if self.root:
                return self.root.getHeight()
            else:
                return -1
    
    opened by rittamdebnath 3
  • Temperature conversion project

    Temperature conversion project

    In this project, if the user inputs a text with alpabetic characters as the choice variable, it gives an error. Even if the choice is 1 or 2, if the user inputs a alphabetic string, it gives an error as well. So, we need to check the user's answer and respond accordingly, so that it doesn't give an error.

    opened by froumeli 2
  • pandas_weather.py #11 produces an error

    pandas_weather.py #11 produces an error

    The reason for the error is that the key 'avg_high' can't be found because it has been changed to 'av_hi'.

    Here is the link to the file: https://github.com/joeyajames/Python/blob/master/Pandas/pandas_weather.py

    Here is the output:

    --------------------------------------------------
    [ 11. iterate rows of df with a for loop ]
    
    ---------------------------------------------------------------------------
    TypeError                                 Traceback (most recent call last)
    ~/opt/anaconda3/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_value(self, series, key)
       4409             try:
    -> 4410                 return libindex.get_value_at(s, key)
       4411             except IndexError:
    
    pandas/_libs/index.pyx in pandas._libs.index.get_value_at()
    
    pandas/_libs/index.pyx in pandas._libs.index.get_value_at()
    
    pandas/_libs/util.pxd in pandas._libs.util.get_value_at()
    
    pandas/_libs/util.pxd in pandas._libs.util.validate_indexer()
    
    TypeError: 'str' object cannot be interpreted as an integer
    
    During handling of the above exception, another exception occurred:
    
    KeyError                                  Traceback (most recent call last)
    <ipython-input-14-1fc7b7226e62> in <module>
          2 header("11. iterate rows of df with a for loop")
          3 for index, row in df.iterrows():
    ----> 4     print (index, row["month"], row["avg_high"])
    
    ~/opt/anaconda3/lib/python3.7/site-packages/pandas/core/series.py in __getitem__(self, key)
        869         key = com.apply_if_callable(key, self)
        870         try:
    --> 871             result = self.index.get_value(self, key)
        872 
        873             if not is_scalar(result):
    
    ~/opt/anaconda3/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_value(self, series, key)
       4416                     raise InvalidIndexError(key)
       4417                 else:
    -> 4418                     raise e1
       4419             except Exception:
       4420                 raise e1
    
    ~/opt/anaconda3/lib/python3.7/site-packages/pandas/core/indexes/base.py in get_value(self, series, key)
       4402         k = self._convert_scalar_indexer(k, kind="getitem")
       4403         try:
    -> 4404             return self._engine.get_value(s, k, tz=getattr(series.dtype, "tz", None))
       4405         except KeyError as e1:
       4406             if len(self) > 0 and (self.holds_integer() or self.is_boolean()):
    
    pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_value()
    
    pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_value()
    
    pandas/_libs/index.pyx in pandas._libs.index.IndexEngine.get_loc()
    
    pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
    
    pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.PyObjectHashTable.get_item()
    
    KeyError: 'avg_high'
    
    
    
    opened by odebroqueville 2
  • Module not found error in code of matplotlib and pandas library

    Module not found error in code of matplotlib and pandas library

    @joeyajames The code of matplotlib library as well as pandas library is not executing since there is a typo mistake in code . Please assign me this issue .

    opened by Varun270 1
  • About the time complexity

    About the time complexity

    Thank you very much for your video and code!

    But I actually have one question about your codes time complexity. The following two lines of codes showing that you are using Python slicing to construct the left half and right half:

    L = A[first:middle+1] R = A[middle+1:last+1]

    Since the slicing operator is O(k), my question is does the time complexity of the merge sort still be O(nlogn) if we use the Python list slicing in our codes?

    Thank you very much!

    question 
    opened by bright1993ff66 1
  • Correction in readme

    Correction in readme

    There are some mistakes in your read me the file so we make some correction in to it. Hope it will be helpful to you. Just accept our commits and keep coding.

    opened by RohanKumar122 0
  • NameError: name 'threshold' is not defined

    NameError: name 'threshold' is not defined

    Threshold was used before assigning any value or defining and this cause NameError. So, changed quick_sort2 function and made a PR. Now it take threshold by computing it and code is working perfectly.

    opened by suryadeepti 0
Owner
Joe James
MSCS, MBA, resident of Silicon Valley, investor, biking & trail running enthusiast.
Joe James
Code for the manim-generated scenes used in 3blue1brown videos

This project contains the code used to generate the explanatory math videos found on 3Blue1Brown. This almost entirely consists of scenes generated us

Grant Sanderson 4.1k Jan 2, 2023
A repository containing an introduction to Panel made to be support videos and talks.

?? Awesome Panel - Introduction to Panel THIS REPO IS WORK IN PROGRESS. PRE-ALPHA Panel is a very powerful framework for exploratory data analysis and

Marc Skov Madsen 51 Nov 17, 2022
Test to grab m3u from YouTube live.

YouTube_to_m3u https://raw.githubusercontent.com/benmoose39/YouTube_to_m3u/main/youtube.m3u Updated m3u links of YouTube live channels, auto-updated e

null 136 Jan 6, 2023
Insert a Spotify Playlist, Get a list of YouTube URLs from it.

spotbee This is a module that spits out YouTube URLs from Spotify Playlist URLs Why use this? It is asynchronous which makes it compatible to use with

Nishant Sapkota 10 Apr 6, 2022
Allows you to purge all reply comments left by a user on a YouTube channel or video.

YouTube Spammer Purge Allows you to purge all reply comments left by a user on a YouTube channel or video. Purpose Recently, there has been a massive

null 4.3k Jan 9, 2023
Youtube Channel Website

Videos-By-Sanjeevi Youtube Channel Website YouTube Channel Website Features: Free Hosting using GitHub Pages and open-source code base in GitHub. It c

Sanjeevi Subramani 5 Mar 26, 2022
A Bot that adds YouTube views to your video of choice

YoutubeViews Free Youtube viewer bot A Bot that adds YouTube views to your video of choice Installation git clone https://github.com/davdtheemonk/Yout

ProbablyX 5 Dec 6, 2022
Learning objective: Use React.js, Axios, and CSS to build a responsive YouTube clone app

Learning objective: Use React.js, Axios, and CSS to build a responsive YouTube clone app to search for YouTube videos, channels, playlists, and live events via wrapper around Google YouTube API.

Dillon 0 May 3, 2022
Streamlit apps done following data professor's course on YouTube

streamlit-twelve-apps Streamlit apps done following data professor's course on YouTube Español Curso de apps de data science hecho por Data Professor

Federico Bravin 1 Jan 10, 2022
This is a library which aiming to save all my code about cpp. It will help me to code conveniently.

This is a library which aiming to save all my code about cpp. It will help me to code conveniently.

Paul Leo 21 Dec 6, 2021
Py-Parser est un parser de code python en python encore en plien dévlopement.

PY - PARSER Py-Parser est un parser de code python en python encore en plien dévlopement. Une fois achevé, il servira a de nombreux projets comme glad

pf4 3 Feb 21, 2022
inverted pendulum fuzzy control python code (python 2.7.18)

inverted-pendulum-fuzzy-control- inverted pendulum fuzzy control python code (python 2.7.18) We have 3 general functions for 3 main steps: fuzzificati

arian mottaghi 4 May 23, 2022
Research using python - Guide for development of research code (using Anaconda Python)

Guide for development of research code (using Anaconda Python) TL;DR: One time s

Ziv Yaniv 1 Feb 1, 2022
Advanced python code - For students in my advanced python class

advanced_python_code For students in my advanced python class Week Topic Recordi

Ariel Avshalom 3 May 27, 2022
Python-Kite: Simple python code to make kite pattern

Python-Kite Simple python code to make kite pattern. Getting Started These instr

Anoint 0 Mar 22, 2022
Source code for Learn Programming: Python

This repository contains the source code of the game engine behind Learn Programming: Python. The two key files are game.py (the main source of the ga

Niema Moshiri 25 Apr 24, 2022
This is the code of Python enthusiasts collection and written.

I am Python's enthusiast, like to collect Python's programs and code.

cnzb 35 Apr 18, 2022
A toolkit for developing and deploying serverless Python code in AWS Lambda.

Python-lambda is a toolset for developing and deploying serverless Python code in AWS Lambda. A call for contributors With python-lambda and pytube bo

Nick Ficano 1.4k Jan 3, 2023