In the world of Python programming, migrating code from Python 2 to Python 3 has been an essential task due to the language’s evolution and the deprecation of Python 2. While the transition can seem daunting, there are powerful tools available to simplify the process. One such tool is 2to3, an automated code conversion tool […]
Python
ValueError: Masked arrays must be 1-D
Scatter plot is a basic plot of dots. You can draw it by calling plt.scatter(x,y). The following example shows a scatter plot of random dots: import numpy as np import matplotlib.pyplot as plt # Set the random seed for NumPy function to keep the results reproducible np.random.seed(42) # Generate a 2 by 100 NumPy Array […]
How to Use External Python modules in MySQL Shell
MySQL Shell is a great tool for working with MySQL. One of the features that make it stand out compared to the traditional mysql command-line client is the support for JavaScript and Python in addition to SQL statements. This allows you to write code you otherwise would have had to write outside the client. This […]
Hello Newbies in Tech! Switching From Windows to Linux? Read This First
I am a newbie in tech. I have been using Linux and Windows side by side for quite some time now. This blog post is based on my personal experience. I love Windows. I have used Windows all my life. Once, I thought of trying out a Linux distribution. I installed Ubuntu, but then I […]
A Beginner’s Guide To Create Files & Folders Inside Windows Subsystem For Linux
In this blog, we will learn how to create or move files and folders to Linux root system from Windows. Familiarity with Windows Subsystem for Linux (WLS) is required. Please read my earlier blog post – Windows Subsystem For Linux – Run Linux on Windows (It’s FAST). This is part 3 of our 4 part […]
Windows Subsystem For Linux – Run Linux on Windows (It’s FAST)
I am a newbie in tech. I have been using Linux and Windows side by side for quite some time now. This blog post is based on my personal experience. Feedback Welcome. Would really appreciate your time. In my earlier blog post Linux Vs Windows – Why Linux Is Better for Programming & Web Dev, […]
The Ultimate Guide To Use VS Code With Windows Subsystem for Linux (WSL)
In this blog, we will learn how to use Visual Studio Code in Windows Subsystem for Linux (WSL). In case you have not heard about WSL before, please read my earlier blog posts – What is Windows Subsystem For Linux and How To Run Linux on Windows. This is part 5 of our 6 part […]
My Development Environment Set up on Windows to use Python for Web Dev & Data Science
Techies have different set-ups on a Windows machine to use Python for web development, machine learning or data science. For the newbies in tech, I recommend any one of the following two development environment set-ups (also recommended by Microsoft) to start their coding journey: Use Windows Subsystem for Linux (WSL) and VS Code This is […]
Set up Jupyter Notebook in VS Code for Data Science
Project Jupyter is a non-profit, 100% open-source project. It develops software and web applications to support interactive data science and scientific computing. JupyterLab, Jupyter Notebook, and Jupyter Hub are the three key open-source software developed by the team. The Jupyter Notebook is a web app that lets you easily create and share documents that contain […]
Strings and Variables in Python
Strings A string is simply a series of characters. Anything inside quotes is considered a string in Python,and you can use single or double quotes around your strings like this: This is a string.” ‘This is also a string.’ Changing Case in a String with Methods One of the simplest tasks you can do with […]