Wiki
Books
Shop
Courses
Careers
Change language
English
Italiano
Deutsch
Français
Español
Türk
Русский
Português
Polski
Nederlandse
中文
한국어
日本語
हिन्दी
Python.Engineering
Wiki
刪除熊貓數據框的前三行
刪除熊貓數據框的前三行
__del__
|
__delete__
|
ast Python module
|
code Python module
|
Python functions
|
re Python module
|
StackOverflow
Michael Zippo
11.03.2022
我需要刪除 pandas 中數據框的前三行。
我知道
df.ix[:-1]
會刪除最後一行,但我可以"不知道如何刪除前 n 行。