I have a dataframe, which has two columns, the following is the screenshot of printing it out directly. However, when printing out its columns, only one column is shown. I guess the first column is used by index by default, how can I add one extra index column, and avoid using history_date column as index.
Asked
Active
Viewed 39 times
0
-
`df_id_ts.reset_index(inplace=True)` – sacuL Aug 13 '18 at 17:02
-
That's not a column, it's an index. See marked dup for more details. – jpp Aug 13 '18 at 17:24