Nov-28-2018, 03:56 AM
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!
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!