1) Which of the following method is used to delete row/column from a dataframe? a) delete() b) remove() c) discard() d) drop() 2) To delete a row from dataframe, which of the following method is correct? A dataframe is indexed with names. a) df.drop(df.row_index=’Jay’) b) df.drop(‘Jay’) c) df.drop(df.row=’Jay’) d) df.drop(df[‘Jay’]) 3) When you perform delete operation on dataframe, it returns a new dataframe always without changing the old dataframe. To avoid this which parameter you will use to change the original dataframe? a) intact = True b) inplace = True c) update = True d) replace = True 4) Ankita is working on dataframe wihch has 4 rows and 3 columns. She wrote df.drop(df.index[[1,3]]). Which rows will be deleted from the dataframe? a) Row 1 and Row 3 b) Rows between 1 and 3 c) Row 2 d) All rows from row no. 1 to index row no. 3 5) Which parameter is used to drop() method to delete columns? a) column = n (Where n is column number) b) col = n (Where n is column number) c) axis = 0 d) axis = 1 6) Can you delete multiple columns using del? a) Yes b) No 7) pop() method does not display the contents of columns deleted a) True b) False 8) Does drop() delete column permanently from a dataframe. a) Yes b) No c) After using inplace parameter d) Both b and c 9) Which of the following can permanently delete a column from dataframe a) pop() b) Del command c) drop() d) Both a and b 10) Can we delete rows and columns together? a) Yes b) No
0%
Quiz on deletion of rows and columns from a dataframe.
共用
共用
共用
由
Manshadheer1915
編輯內容
列印
嵌入
更多
作業
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
測驗
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?