DataFrame single row data keep format

If DataFrame directly obtains a row of data by .iloc, it will get a Series.
If you want to keep the result in the original dataframe format, just add [] to the index.

XX_CSV.iloc[[len_num, ]]

Guess you like

Origin blog.csdn.net/Cecidit_824/article/details/126274574