Just nowMember-onlyHow To Fix — ‘pip’ is not recognized as the name of a cmdlet, function…Have you ever seen these errors: ‘pip’ is not recognized as an internal or externa, command ‘pip’ is not recognized as the name of a cmdlet, function… If you are a Python developer, then you must have seen at least one of these errors in your development journey. What exactly is is this error? This error…Python1 min read
1 day agoMember-onlyFormatting A Text Based On Number Of Columns In PythonSay you have a text which is very long and occupying many columns or, in other words, say you have a text which is so long that the end user is seeing scrollbar because of the limited screen size. Now, when the text is very long and user viewable area…Python2 min read
4 days agoMember-onlyWays To Align Text Strings In PythonIn this article, I’ll show you various ways to align strings in Python. There are many different ways we can align strings in Python. Let’s have a look at those: Left Align For left-aligned text, you can use ljust(…) function, which stands for left justification. my_text = “Shift me.” print(my_text.ljust(25) ) The…Python2 min read
6 days agoMember-onlyAre Your Intellisense Working In Jupyter Notebook?Can you imagine a life of a programmer using an editor having no intellisense support? In today’s era where most of us are working in many programming languages at the same time, it is very difficult to remember the syntax of all the programming languages? The one thing which is…Python3 min read
Aug 10Member-onlyTrick To Simplify IF In PythonUsing conditionals or say IF-ELSE statement is quite common when developing any application and based on the programming language, the syntax to handle such conditionals varies but the underline concept remains the same. In this article, I’ll show you how to write an IF statement in Python to check if…Python2 min read
Aug 9Member-onlyGenerate Pivot Table Using PythonPython is nowadays a very common language to use, especially when you want to automate something. Hence, we will go with Python to automate our today’s flow wherein we will generate a pivot table using Python and then we will save it back to Microsoft Excel. Input Data I’m considering CSV file…Python2 min read
Aug 8Member-onlyHow To Schedule A Python ScriptWhenever we think about automating something, there are many questions which come to our mind. Like, How will we schedule it? How many times we want to execute it? Is it possible to automate this scheduling part? Well, in this article I’m going to walk you through all those various…Python4 min read
Aug 7Member-onlyPrint Calendar Of Any Year With Just 2 Lines Of CodeIn this article, I’ll show you those two lines of Python code, using which you can print calendar of any year. Required Package The pre-requisite to generate calendar is to import the required package named calendar as shown below: from calendar import * Generate Calendar Now to generate a calendar, we need to call…Python1 min read
Aug 5Member-onlyHave You Ever Sorted A Python Dictionary By Value?It is quite common to sort a Python dictionary based on key. But what if you want to perform sorting on the value? In this article, I’m going to show you multiple ways to sort dictionary value and then return the resultant dictionary. Method 1: Using operator The very first method to sort dictionary…Python2 min read
Aug 4Member-onlyDo you know the magic of REDUCE in Python?Before jumping on to what is reduce, let’s have a quick look at the below lines of code: sum = 0 for n in [1,2,3]: sum = sum + n print(sum) You got it right. Here we are taking a collection having three numbers and summing them up. As such…Python2 min read