SQA Tools Blog

Learn testing and automation, one article at a time

Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.

1,677Articles
1,141Solved Python problems
7Topics
100%Free

Python practice articles

1,137 articles · page 40 of 95 · Clear filters
Python practice

Remove the last n rows

Write a pandas program to remove the last n rows. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Remove the first n rows

Write a pandas program to remove the first n rows. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

All columns except one

Write a pandas program to select all columns except one. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Index of a column

Write a pandas program to find the position of a column. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

List of lists to DataFrame

Write a pandas program to convert a list of lists into a DataFrame. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Column data types

Write a pandas program to get the data type of each column. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Is a column present?

Write a pandas program to check whether a column exists. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Row with the minimum value

Write a pandas program to find the row where a column is smallest. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Row with the maximum value

Write a pandas program to find the row where a column is largest. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Column values as a list

Write a pandas program to get the values of a column as a list. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Rename one column

Write a pandas program to rename one column. Step-by-step explanation, colour-coded code and real output.

1 min readRead →
Python practice

Shuffle rows

Write a pandas program to shuffle rows. Step-by-step explanation, colour-coded code and real output.

1 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.