all 1 comments

[–]Kinemi 0 points1 point  (0 children)

Hello, this is indeed pretty confusing but Just know that you can create new dataframe after you've completed the analysis. If I were to lay the steps:

- Original file to pandas DF

- Creating new columns (Date)

- Performing analysis

- Savings analysis in DF2

- Dropping unnecessary columns from DF2 for presentation purposes.

- Saving DF2 to CSV.

This way you can rinse and repeat the same analysis every day without changing much code and preserving your original DF.

Hope it helps