Suppose you have a DataFrame df with columns Name, Age, Gender, and Salary. Which of the following code snippets will filter the DataFrame to include only rows where Age is more than 25 and Salary is less than 50000, and also sort the resulting DataFrame by Name?
Your dataset includes several categorical variables. What is the most efficient way to convert these variables into a format that can be fed into a machine learning model?
You are a data analyst who needs to collect large volumes of data from a RESTful API that has pagination implemented. Which Python code snippet would be the most effective way to gather all the available data?
In a given dataset, you have a categorical feature "State" that includes the 50 U.S. states. You decide to one-hot encode this feature. What potential issue should you be cautious about?