Welcome back for another class of our course about the complete introduction to science with the use
of Python and many other tools.
So in this class, we are going to learn some really interesting things that are khaleda that is called
minging.
So basically, this is an operation that you guys can perform with Banda's when you use it with Python
and what it does exactly, it's pretty simple.
It will simply convert your animal plenty of foul types into some other five steps.
For example, for the purpose of this course, we are going to convert HTML and e-mail file as we file
into an HTML file.
So you'll see it's pretty simple.
So before we even start, we need to create our CSB file.
So I'll ask you guys to open up Excel and just create a small table that looks like this.
So basically you need numbers, letters and you can write any words that you want.
Just create a basic table and we can start like this to create Ursy as you file when it's all done really
important.
You need to see this file in kesby, so don't give it into Excel because if you do, it's not going
to work so really important.
Save it in C.
All right.
So when everything is done simply create yourself a folder.
So be before even creating your file.
You need to create a folder that you will see on your desktop because you will need to know where exactly
your file is stored so that you can see the file is stored right here.
All right.
So what I want to do right now is pretty simple.
We want to write down the lines of code that will help us convert this file into an e-mail file.
So before we even start, we need to import Pande.
So really important.
Import this as all right when it's on.
And the next thing that we need to do is a week or so before converting it, we need to ask Python to
read our file and in this case, let's name it color.
So we want to read color.
All right.
So treat our file.
We're going to ask PDU panders to it, and here we can choose what type of file we want to.
So here we have CLV, Excel and plenty of other file types that we can read.
But we want to read a C as well.
So it's going to be the first one.
And then we need to write down the location of our file.
So we need to know exactly where your file is located.
So as I said, the file location should be somewhere, right?
Should look something like this like here.
So basically something like this, basically, as you can see there, it should look something like
this.
All right.
So your file location should be here.
So you just open up your folder here.
You have your file location, then you simply add another tab like this and you write down your file
name.
So in this in my case, it's work.
And don't forget at the end, right, Dot?
Because if you don't do that, it's not going to work so really important.
I forget that is idea.
All right, then to be sure that everything works fine, you just need to run everything.
And as you can see, if the process finished with exit code zero, this means that everything works
perfectly.
All right.
So the next step would be converting our file into an HTML file.
So how exactly do this?
It's pretty simple.
So we will write down our color.
So basically, this is the name of our file dot to to what we want to convert it.
So here we can choose what exactly what we want to convert it to HTML.
So we'll write down to each HTML and how exactly want to name it.
Let's say we want to name it nice colors.
So in this case we'll just name it nice color.
Here we go.
Then we can run our file and if everything works fine, you guys should receive a text file right here.
If you open up the text file, you will see here you will have all the HTML code linked with your file.
So you can see if we go right there, you will find your HDMI, you will find your file.
That should look like this.
And this is the code that is linked with your file.
All right.
Next thing that we want to do, want to create a file, because this is a text file.
So we will create an HTML filename it nice color one.
When it's done will simply take all the code that we have here.
So basically this is the code in each e-mail, we will copy everything.
And will simply passed it here.
So here we go, we have our e-mail file here.
So basically when it's all done, you guys can run your code so you can choose your Web browser.
In this case, I'm going to run it with Magilla.
So you can see I run it right here and I have my top right there, so everything works fine and perfect.
So let's just compare the two files, so let's compare the two tafsir.
So basically, I have my top right here that I created and this is the top that have been generated
as a cook.
So as you can see, it's pretty much it's really cool.
And I'm able to convert my CSB file into an HTML file with a simple line of code.
Just can see.
It's pretty interesting.
Once again, what I'm doing right now is really basic level.
So you guys should be able to do it.
And that if this is just basic level, usually you can do some really cool stuff when you get more advanced
and when you practice more.
So I hope you guys like the band part.
So it's a really good tool.
And if you guys learn how to master it, you'll see there is really interesting things that you can
do with it.
So that's it.
First class guys and see all in our next class.