Tag: Pandas

  • 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.…

  • 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 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.…

  • 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…

  • 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…

  • 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…

  • Python libraries for Machine Learning

    There are a lot of python libraries for machine learning. In this section we will take a look at three major libraries which we need the most. Firstly we will discuss NumPy. It is one of the fundamental libraries that we need for machine learning as well as data science.  What can we do with…