Most of this file was created by my friend, chatgpt. I call her Lady of the Lake.
This routine is for practice storing AI training data in pandas and pickle format and retrieving the data afterward.
Here's what the output looks like when I run it.
Session data saved to session_data.pkl
Training data saved to training_data.csv
unserialized data: {'user_id': 12345, 'messages_exchanged': 50, 'last_interaction': '2024-11-20 07:01:45', 'user_preferences': {'theme': 'dark', 'language': 'English'}}
PS C:\users\p> & C:/Users/p/AppData/Local/Programs/Python/Python312/python.exe c:/Users/p/my_data_test.py
Session data saved to session_data.pkl
Training data saved to training_data.csv
unserialized data: {'user_id': 12345, 'messages_exchanged': 50, 'last_interaction': '2024-11-20 08:22:55', 'user_preferences': {'theme': 'dark', 'language': 'English'}}
PS C:\users\p>