A Blog on AI, Flutter, PHP and more

  • Can you mix two programming languages

    The answer is yes. We can learn two programming languages at the same time. When we learn web development, what do we do? We learn HTML, CSS, PHP, MySQL or even JavaScript at the one go. Right?  With reference to the question, we need to understand the context.  For example, consider programming languages like C…

  • Which programming language should I learn

    Very often a beginner asks this question – which programming language should I learn? There are many common languages. However, in 2023, we want to include some popular programming languages to our list.  Python: we use Python in data science, machine learning, and web development.  It has a large and active community and a wide…

  • Pandas sort by column name

    Pandas sort by column name is nothing but a certain type of data analysis. For beginners especially, we can do it to give an idea. Think about the data structure as a spreadsheet where we have multiple rows and columns. Right? Now we can use Pandas to handle a large amount of data because this…

  • Pandas describe method

    In the previous section we have learned how we can play with pandas head and tail methods. Pandas describe method is also important. Why? Because pandas describe method generates descriptive statistics that we need especially for studying statistical data.  Before moving ahead, let’s take a look at the code first. Now as we take a…

  • Pandas head and tail

    For beginners in data science and machine learning, Pandas head and tail functions are two most basic tools that we use. We have already discussed a few Pandas topics before. If you have not already had an idea about how Pandas Python library works, you may check the following links. Firstly, Pandas library in Python…

  • NumPy and Pandas for Machine Learning

    Both the NumPy and Pandas are essential for scientific computation. It includes machine learning and data science.  By now we have come to know that both are libraries and almost in every step we need them. In this section we will take a close look at what are the key differences between these two libraries.…

  • What is enumerate in Python

    The enumerate in Python is a built-in function. It takes an iterable object. And returns an iterator that produces tuples. The iterable object could be a list, tuple, or string. Moreover, it contains the index and the value of each element of the object. Here’s an example. Here we can use enumerate to iterate over…

  • Install Jupyter Pandas Matplotlib

    How to install Jupyter Pandas Matplotlib on our machine?  Firstly, let’s start with the Jupyter Notebook on Ubuntu that I use. On that account you need to open your terminal and type a few commands. And that’s all you need to do. In this section we will take a close look at this topic and…

  • Pandas dataframe operations for Machine Learning

    As we said before Pandas is one of the most useful machine learning libraries. However, we need to know Pandas dataframe operations. Especially those operations that we need everyday to train and test data for machine learning. In our previous sections we have seen how we can import different libraries like Pandas, scikit-learn, Matplotlib, and NumPy. Each of them…

  • What is for loop in Python give example?

    The for loop in Python is one of the main looping constructs. Usually we use the for loop when we want to iterate over the sequence.  This sequence could be a collection, such as tuple, list, or even a string. As a result of iteration, the placeholder variable takes every item as we iterate over…

  • What are three data structures in pandas?

    Three data structures in Pandas are Series, DataFrame and Panel. In short, we can say, one, two and multi dimensional arrays. One dimensional array means simply a column of data. We will see that in a minute with Pandas library.  On the other hand, a DataFrame represents roots and columns.  We hardly use the Panel.…

  • Python while loop

    In our previous section we have seen examples of if-else. In this section, we will take a look at Python while loop. The common question that comes to our mind is which one is faster? For or while loop?  In the Java section, we have tried to find out the answer. You may have a…

  • Multivariate regression in machine learning

    Multivariate Regression in Machine Learning is a supervised machine learning algorithm. In this section we will take a close look. How does this linear regression model work? How can we train our model to predict an outcome based on a formula? In this section we will try to understand this important concept and dig some…

  • Logarithm and Data Analysis

    What is the relationship between logarithm and data analysis? In machine learning and data science we need basic mathematics. With reference to this topic, in our previous section we have seen how we can use basic exponent and logarithm in Python. Certainly the previous article was an introduction, towards machine learning, data science and mathematics.…

  • Do you need good math for machine learning?

    How much math for machine learning do we need to learn? This question probably haunts every beginner who has no math-background. In this section we will take a look at the tip of the iceberg. As we progress, we will learn more about basic mathematics and statistics that we need for machine learning. Firstly, for…

  • Pandas and Machine Learning

    Pandas and Machine Learning become synonymous. In fact, in machine learning we use the Pandas library, more than others.  In our previous sections we have seen how we can import different libraries like Pandas, scikit-learn, Matplotlib, and NumPy. However in this section we will start with the Pandas only. Next we will read and operate on data that we…

  • if else in python

    The if else in Python is a part of flow control. In this section we will try to understand how the if-else block works in Python. If you are new to Python, you may visit the other beginner friendly articles in the Python Primer category. Flow control plays an important role not only in Python…

  • Coefficient and intercept in linear regression

    Coefficient and intercept in linear regression play an important role in machine learning. For the beginners, this concept is essential. Why? Let’s try to understand the topic in this section. Firstly, let’s imagine an equation like below. y = mx + b In the above equation, y is the dependent variable, and x is the…

  • Namespace and scope in Python

    Namespace and scope in Python are very much interrelated. In this section, we will take a look at this very important concept. Before giving an example we can take a look at the file systems in a computer. Suppose in C drive, we try to save a file under the same name. Will it allow…

  • Training a model in Machine Learning

    Training a model in Machine Learning means a lot of things. To make it simple, we can say that a model learns from previous data first. For example, by examining the model, the machine learning algorithms try to read and learn from the pattern of the past data. As a result, it minimizes the error…

  • How do you predict a single value in linear regression?

    How to predict a single value in linear regression using a machine learning model? Let’s try to understand with a simple example. In our previous section we have discussed how we can use the linear regression method of the scikit-learn library to make it happen. However, to do this operation we also need another great…

Get Books in Leanpub