How to Interact with Apache Zookeeper using Python?

In the Hadoop ecosystem, Apache Zookeeper plays an important role in coordination amongst distributed resources. Apart from being an important component of Hadoop, it is also a very good concept to learn for a system design interview. What is Apache Zookeeper? Apache ZooKeeper is a coordination tool to let people build distributed systems easier. In … Continue reading “How to Interact with Apache Zookeeper using Python?”

When to use While, For, and Map for iterations in Python?

Python has a really sophisticated way of handling iterations. The only thing it does not have “GOTO Labels” which I think is good. Let us compare the three common ways of iterations in Python: While, For and Map by the way of an example. Imagine that you have a list of numbers and you would … Continue reading “When to use While, For, and Map for iterations in Python?”

How to handle Command Line Arguments in Python?

When you are running python programs from the command line, you can pass various arguments to the program and your program can handle it. Here is a quick snippet of code that I will be explaining later: When you run this program from the command line, you will get this kind of results: $ python … Continue reading “How to handle Command Line Arguments in Python?”

Analyzing data of the global pandemic – COVID – 19 using Python

Covid-19 has been declared as a global pandemic. If you are interested to analyse the data by yourself, please follow the instructions below. The data is made available to everyone at the locations given below. The data files are in the form of four metrics and are available to download here:Total confirmed cases:https://cowid.netlify.com/data/total_cases.csvTotal deaths:https://cowid.netlify.com/data/total_deaths.csvNew confirmed … Continue reading “Analyzing data of the global pandemic – COVID – 19 using Python”

NumPy and Pandas Tutorial – Data Analysis with Python

Python is increasingly being used as a scientific language. Matrix and vector manipulations are extremely important for scientific computations. Both NumPy and Pandas have emerged to be essential libraries for any scientific computation, including machine learning, in python due to their intuitive syntax and high-performance matrix computation capabilities. In this post, we will provide an … Continue reading “NumPy and Pandas Tutorial – Data Analysis with Python”

Python Setup Using Anaconda For Machine Learning and Data Science Tools

In this post, we will learn how to configure tools required for CloudxLab’s Python for Machine Learning course. We will use Python 3 and Jupyter notebooks for hands-on practicals in the course. Jupyter notebooks provide a really good user interface to write code, equations, and visualizations. Please choose one of the options listed below for practicals during … Continue reading “Python Setup Using Anaconda For Machine Learning and Data Science Tools”

Install Python packages on CloudxLab

In this blog post, we will learn how to install Python packages on CloudxLab. Step 1- Create the virtual environment for your project. A virtual environment is a tool to keep the dependencies required by different projects in separate places, by creating virtual Python environments for them. Login to CloudxLab web console and create a virtual … Continue reading “Install Python packages on CloudxLab”

Running PySpark in Jupyter / IPython notebook

You can run PySpark code in Jupyter notebook on CloudxLab. The following instructions cover 2.2, 2.3, 2.4 and 3.1 versions of Apache Spark. What is Jupyter notebook? The IPython Notebook is now known as the Jupyter Notebook. It is an interactive computational environment, in which you can combine code execution, rich text, mathematics, plots and rich media. … Continue reading “Running PySpark in Jupyter / IPython notebook”

Building your own ChatGPT from scratch

In a world where technology constantly pushes the boundaries of human imagination, one phenomenon stands out: ChatGPT. You’ve probably experienced its magic, admired how it can chat meaningfully, and maybe even wondered how it all works inside. ChatGPT is more than just a program; it’s a gateway to the realms of artificial intelligence, showcasing the … Continue reading “Building your own ChatGPT from scratch”