2022-05-06 09:10:40
Для того, чтобы удалить необходимые колонные, используется команда
drop(). Вызываем команду
drop() на наш датафрейм и указываем имена колонн, которые будут удалены. Параметр
axis=1 означает, что будет удалена вся колонна. Простыми словами,
axis=0 это параметры для строки, по горизонтали, а
axis=1 параметр для колонки, по вертикали. Параметр inplace=True означает, что мы будем вносить изменение в исходный датафрейм. Показатель false создаст копию датафрейма и внесет изменения в него.
The
drop() command is used to remove columns. We call the
drop() command on our dataframe and specify the names of the columns that will be deleted. The
axis=1 parameter means that the entire column will be deleted. In simple words,
axis=0 is the parameter for the row, horizontally, and
axis=1 is the parameter for the column, vertically. The parameter inplace=True means that we will make a change in the original dataframe. The parameter false will create a copy of the dataframe and make changes to it.
pandas | python
100 views06:10