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 코드
삭제
자동 저장된
게임을 복구할까요?