Which of the following is NOT a valid built-in Pandas method?
Which of the following is NOT a valid built-in Pandas method?
Solution
✅ Correct Option: 4
Pandas has no method called add_col. A new column is added with assignment, , or with the methods insert() and assign().
Options 1 and 2: Series and DataFrame are Pandas' core classes, created as pd.Series() and pd.DataFrame(), so they are valid.
Option 3: read_sql_query() is a real Pandas function that runs a SQL query and returns a DataFrame.
Related questions:
2025: 27 May Shift 2