Simple for loops can be use to print patterns in Python for Data Science. So, to denote the number of rows, the first outer loop is use and to denote the number of columns, the inner nested loop is used.
Below are some examples of patterns:
Simple Pyramid:
Alternate approach:
180 degree rotation:
Triangle Pattern:
Number Pattern:
Numbers without re-assignment:
Character:
Continuous Character:
To learn more about patterns in python for data science, you can check this and this as well.