Python Forum
Saving Values Changed in a database
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving Values Changed in a database
#1
Hey everybody, I'm fairly new to Python (and coding in general) and I have a question:

Is there a way that I can save any changes I made to a csv during my coding?

Basically, I'm writing a program where I want to change values on a CSV file based upon random numbers I have generated. I have gotten that part down to work exactly like I want it, however, I want to save those values I get from those random numbers into that CSV and edit those numbers permanently. Is there a way to do that?

Right now, I get those values and edit the dataframe, but when I exit my work and go back those values generated by the random number will change and I do not want them to do that.

Any help is greatly appreciated! Thanks!
Reply
#2
I'm not sure I know what you are trying to do here.
If all you want to do is save a list of random numbers, append them to the end of the file, with some sort of Id so they can be identified later.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Comparing two Pandas df’s and returning only changed records hobbycoder 1 688 Oct-29-2024, 01:55 PM
Last Post: deanhystad
  The behavior of tune model has changed Led_Zeppelin 5 5,981 Oct-21-2021, 06:52 PM
Last Post: jefsummers
  how can a variable change if I haven't changed it? niminim 5 4,654 Apr-07-2021, 06:57 PM
Last Post: niminim
Photo Insert 0 values in database saljuaid 4 3,699 Nov-08-2020, 12:09 PM
Last Post: saljuaid
  help with changing values in an excel sheet and saving to a new file Moneyman212 2 4,116 Nov-19-2019, 06:25 AM
Last Post: Moneyman212
  Custom Function to Return Database Values rm78 0 2,149 Sep-05-2019, 01:01 PM
Last Post: rm78
  RuntimeError: dictionary changed size during iteration Shreeniket987 3 5,920 Jun-01-2019, 01:22 PM
Last Post: buran
  my list is being changed ivinjjunior 15 7,893 May-29-2019, 02:54 PM
Last Post: ivinjjunior
  Creation of Dynamic HTML by substituting Database values Sandy777 1 2,801 Apr-18-2019, 07:17 AM
Last Post: buran
  RuntimeError: dictionary changed size during iteration anna 4 4,678 Feb-20-2019, 11:04 AM
Last Post: anna

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020