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, ]]
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, ]]