You can get the number of rows in Pandas DataFrame using len(df.index) and df.shape[0] properties. Pandas allow us to get the shape of the DataFrame by counting the number of rows in the DataFrame. DataFrame.shape property returns the rows and columns, for rows get it from the first index which is zero; like df.shape[0] and for columnsContinue Reading

While working in Pandas DataFrame or any table-like data structures we are often required to change the data type(dtype) of a column also called type casting, for example, convert from int to string, string to int e.t.c, In pandas, you can do this by using several methods like astype(), to_numeric(), covert_dttypes(), infer_objects() and e.t.c. InContinue Reading

Use drop() method to delete rows based on column value in pandas DataFrame, as part of the data cleansing, you would be required to drop rows from the DataFrame when a column value matches with a static value or on another column value. In this article, I will explain dropping rows based on column value.Continue Reading

The Concept of CGI CGI is an abbreviation for Common Gateway Interface. It is not a type of language but a set of rules (specification) that establishes a dynamic interaction between a web application and the client application (or the browser). The programs based on CGI helps in communicating betweenContinue Reading

A regular expression is a set of characters with highly specialized syntax that we can use to find or match other characters or groups of characters. In short, regular expressions, or Regex, are widely used in the UNIX world. Import the re Module The re-module in Python gives full supportContinue Reading

Introduction to the Python regular expressions Regular expressions (called regex or regexp) specify search patterns. Typical examples of regular expressions are the patterns for matching email addresses, phone numbers, and credit card numbers. Regular expressions are essentially a specialized programming language embedded in Python. And you can interact with regularContinue Reading

Nested While Loop in C Programming Language: Writing while loop inside another while loop is called nested while loop or you can say defining one while loop inside another while loop is called nested while loop. That is why nested loops are also called “loops inside the loop”. There can beContinue Reading

Translators in Programming Languages In this article, I am going to discuss What is a Translator and its need in Programming Languages. What is a Translator? Always the user’s given instructions are in English, which is called source code. But the computer is not able to understand this source code and theContinue Reading