Showing posts with label Data Retrieval. Show all posts
Showing posts with label Data Retrieval. Show all posts

Sunday, July 25, 2021

Regular Expressions in Python | Scenario - Finding sub-string match patterns to validate a genuine number from a numeric string using Regular Expressions and search() method in Python | Conceptual Infographic Note

 


Case 01 : Ascertaining a positive match using "\w" to match a specific phone number to a generic string


Case 02 : Ascertaining a negative  match or mismatch using "\w" whether a  match over given string occurs or not

Regular Expressions in Python | Scenario - Finding a sub-string match and its count from a main string using Regular Expressions and findall() function in Python | Conceptual Infographic Note


 

Regular Expressions in Python | Scenario - Replacing a word ("sub-string") with another word ("sub-string") in a main string using Regular Expressions and substitute function in Python | Conceptual Infographic Note


 

Regular Expressions in Python | Scenario - Finding matching pattern of the main string using Regular Expressions and findall() function in Python | Conceptual Infographic Note

 


Regular Expressions in Python | Scenario - Finding Positional Indexes of each matching pattern of the main string using Regular Expressions | Conceptual Infographic Note

 


Regular Expressions in Python | Scenario - Finding and Retrieving specific sub-strings with commonality in patterns using Regular Expressions | Conceptual Infographic Note


 

Regular Expressions in Python | Scenario - Finding and Retrieving specific sub-strings with commonality in patterns using Regular Expressions | Conceptual Infographic Note

 


Regular Expressions in Python | Scenario - Finding and Retrieving specific sub-string and their cpount of occurrence from a main parent string using regular expressions | Conceptual Infographic Note


 

Regular Expressions in Python | Scenario - Finding and Retrieving specific positional indexes of sub-strings and index positions from a parent string using regular expressions and store them in one dictionary | Conceptual Inforgraphic Note

 


Regular Expressions in Python | Scenario - Finding and Retrieving specific sub-strings and integers from a parent string using regular expressions and store them in one dictionary | Conceptual Inforgraphic Note


 

Regular Expressions in Python usecase Scenario | Finding and Retrieving specific sub-strings from a parent string using regular expressions and storing in separate list | Conceptual Inforgraphic Note

 


Thursday, July 8, 2021

Infographic Note on Numpy Arrays in Python with Questions and Answers on procedure to handle random numbers in an Array or Matrix Data Structure

 

Discussed the following questions in the above post :

Q1)If a programmer does not know the last number or position , then how can a programmer show the last position element of an array in Numpy ?

Q2) Using Slicing mechanism , retrieve the first two elements of the numpy array ?

Q3) Using Slicing mechanism , retrieve the last two elements of the numpy array ?

Infographic Note on Numpy Arrays in Python with Questions and Answers on Random Numeric Data Creation and Data Retrieval upon positional indexes

 


Discussed the following questions in the above post :

Q1) Give an example of SEED function and how to use it .

Q2) What is One-Dimensional indexing ?

Q3) Print first , last position elements of a Numpy Array

Q4) Print seond , third position elements of a Numpy Array

Q5) How to identify last number of numpy array ?

Infographic Note on Numpy Arrays in Python with Questions and Answers on Array and Matrix Creation and Data Retrieval

 


Q1) Print range between 1 to 20 and show 5 integer random numbers

Q2) Print range between 1 to 100 and show 10 random integer numbers

Q3) Print range between 1 to 1000 and show 20 random integer numbers

Q4) Print a matrix with range between random number - 5 rows and 5 cols integer random numbers

Q5) Print a matrix range between random number - 10 rows and 6 cols integer random numbers in a             matrix format