Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Md Waqar Tabish
18 articles
Why do we use question mark literal in Python regular expression?
Introduction The question mark makes the previous token in the regular expression optional. For example: colou?r is complementary to both colour and colour. A quantifier is what the question mark is known as. You may make multiple tokens optional by combining numerous tokens in parentheses and adding the question mark after the final set of parentheses. Like Nov(ember)? matches between Nov and Nov. Using many question marks, you may create a regular expression matching a wide range of options. Feb(ruary)? 23(rd)? Matches February 23rd, February 23, Feb 23rd and Feb 23. Curly braces can also be used to make something ...
Read MoreHow can I use Python regex to split a string by multiple delimiters?
Classes that encompass a collection of characters are known as regular expression classes. One of these classes, d, which matches any decimal digit, will be used. Learning how to split data may be valuable. Data arrives in various kinds and sizes, and it's sometimes not as clean as we'd like. You frequently wish to divide a string by more than one delimiter to make it easier to deal with. The built-in regular expression library re is the easiest way to split a string. The library has a.split() function that works similarly to the above example. This approach stands out since ...
Read MoreHow to extract date from text using Python regular expression?
We must first understand some regular expression fundamentals as we will use them. There are various ways to declare patterns in regular expressions, which might make them appear complex but are pretty simple. Regular expressions are patterns that can be used to match strings that adhere to that pattern. You need to read the following article to learn how regular expressions operate. You may commonly extract dates from a given text when learning to code. If you are automating a Python script and need to extract specific numerical figures from a CSV file, if you are a data scientist and ...
Read MoreHow can I subtract a day from a Python date?
Introduction It is essential to have a module that can modify date and time since, as we all know, they are utilized in applications where we must keep track of date and time. A DateTime module in Python deals with dates and times (Python Date/Time Tutorial). Python comes with a built-in datetime module. Installation of two new libraries is necessary before any data modification may take place. Dates and timings are quickly retrieved using the arrow library. A DataFrame may be accessed and used thanks to the Pandas library. Go to an IDE console to install these libraries. ...
Read MoreHow can I get a Python job as a fresher?
Introduction As a fresher, it can be challenging to break into the tech industry and secure a job as a Python developer. However, it is possible with the right combination of skills, experience, and determination. Here are a few steps you can take to increase your chances of getting a Python job Build a strong foundation in Python and programming. This includes completing online courses, tutorials, and exercises to improve your skills and understanding of the language. It's also a good idea to work on personal projects and contribute to open-source projects to gain practical experience and build ...
Read MoreWhat are the limitations of Python?
Python is a popular and widely used programming language known for its simplicity, flexibility, and productivity. It is used in various applications, including web development, data science, and automation. However, like any language, Python has its limitations. Python's main limitations include its performance and speed, memory management, support for concurrency and parallelism, static typing, and web support. Python is an interpreted language executed at runtime by a virtual machine or interpreter. This can make it slower and less efficient than compiled languages like C or C++, and it may not be suitable for applications requiring high performance. Additionally, Python uses ...
Read MorePositive and negative indices in Python?
By indexing, we can access items in Python sequence data types. Strings, lists, tuples, and range objects are sequence data types. In this tutorial, we'll go over-indexing in further detail. What Are List Indexes? Any linear data structure in any programming language is built around indexing. The default index for each machine starts at 0 and continues up to n-1. In this case, n represents the overall number of items in the corresponding data structure. Types include Positive indexing − Increases from 0 to 1. Negative indexing − each traversal moves from tail to head, starting with the last ...
Read MoreWhat are the different types of Python data analysis libraries used?
Without question, Python is among the first things employers look for in a data scientist's skill set. It has quickly established itself as the standard language in the data science industry. It has repeatedly come first in worldwide data science polls, and its ubiquity is only growing! But what distinguishes Python for data scientists so greatly? Like our physical body is made up of several organs for various purposes and a heart to keep them all functioning, the core of Python gives us access to an easy-to-code, object-oriented, high-level language (the heart). For each task category, such as math, data ...
Read MoreWhat is Python, and what is it used for?
As you've heard, python is one of the most well-known programming languages. Two-thirds of the developers who now use the language enjoy it and intend to keep using it, according to a study conducted by Stack Overflow last year. Why, though, is it so well-liked? What does it serve? Python is a versatile programming language that can create virtually any form of software. It may be utilised to create servers, corporate applications, websites, AI, and more. What is Python? What is Python, for what purposes, and what tasks can I carry out with Python? In contrast to HTML, CSS, and ...
Read MoreWhat is a Pairplot in Data Science?
The visual presentation of data is known as data visualization. Because of the excellent ecosystem of Python packages focused on data, it is crucial for data analysis. Summarising and presenting a large quantity of data in a straightforward and understandable style also helps to grasp the data, no matter how complicated it may be, as well as the value of the data. It also aids in the effective and clear transmission of information. We may visualize pairwise connections between variables in a dataset using the Seaborn Pairplot. Condensing a lot of data into a single figure gives the data a ...
Read More