YouTube channel lists – Tuples

Estimated reading time: 1 minute

How to use python Tuples is very similar to Python Lists on our YouTube channel. Like lists tuples can store data. The significant difference is that you cannot change tuples at all; they are “Immutable”. The importance of this when using Tuples is it could impact how you structure your code, especially if you are trying to pass values within it.

Some things to consider in order to understand regards tuples:

(A)When you are using them are enclosed within (), lists have []

(B) There is no ability to change them.

(C) As they cannot be changed and can be considered static data holders, you could use them as a lookup. An example could be something that can only have a set amount of values associated with it.

Below is our list for Tuples from our YouTube channel, if you like what we do, please subscribe! Regular updates to all our lists shall be happening, so subscribing an excellent way to keep in touch 🙂

Thanks!

Data Analytics Ireland

how to pass data between functions

Estimated reading time: 2 minutes

In this python program, we are learning how to pass data between functions, a tool that will become very handy especially when you are trying to automate certain tasks that are repetitive.

Functions serve a number of benefits:

  • You can pass a number of arguments to them to be processed.
  • They are easily identified by using the def keyword in your code.
  • a return statement can give you the output of the function to show on the screen or pass to another function.

It compliments r-tutorial-how-to-pass-data-between-functions/  and can be seen that this handy bit of functionality is used widely across many different programming languages.

Below is a video that will help to give an understanding of how to pass data between functions when trying to learn python:

 

In many of the Data Analytics Ireland    YouTube channel videos, there is an emphasis on creating content that eliminates duplication of code within the code. We have also started incorporating classes as well and you can see here How to create a class in Python , a tutorial on how to create one.

Classes by their nature have methods, which are called on the objects that created them ( the class), and can alter their state, whereas a function will run and just return a value.

It is important to understand the distinction as while the two will most likely achieve the same outcome, it is the ability to change the class state that will differentiate the two.

YouTube channel lists – Python Lists

Estimated reading time: 1 minute

Python lists are a handy tool to help in several ways:

(A) There can be a help when iterating through a large dataset if looking for specific items.

(B) It is possible to use them as lookup values if checking for a particular value.

(C) To have a list of things that need to be checked against, if updated regularly, then lists are helpful here.

(D) If you have a list, by converting to a dataframe, it can be sliced and diced as need be, see Dataframes Posting for more videos on that subject.

Check out our YouTube channel for more exciting videos:

https://www.youtube.com/embed?listType=playlist&list=PL2nlwZUZ5tFKnZLwNeto2w2E0HifsY0qZ&v=dBKNyEHkKc0

We hope you enjoy it!

Data Analytics Ireland

YouTube channel lists – Python DataFrames

Estimated reading time: 1 minute

Welcome to this new blogging website! If you want to know what we are all about to have a look at this page here About Data Analytics Ireland

To keep it simple we have created some lists here and on our YouTube Channel

As we progress over the next while, the website will be updated as we go along, and while there may be a  lot of video content, we will look to mix it up with different formats.

We have started with Python Dataframes :

We hope you enjoy and don’t forget if you like what we are doing subscribe to our channel!

Data Analytics Ireland