How to label the last two rows of a table as "test" and the other rows as "-" using pandas in python?
Example:
+-------+
|sample |
+-------+
| abc|
| bcd|
| cde|
| edc|
+-------+
Become:
+-------++-------+
|sample ||result |
+-------++-------+
| abc|| -|
| bcd|| -|
| cde|| test|
| edc|| test|
+-------++-------+
Thank you