I have a csv loaded using pandas as a dataframe. I make a update to only one record of the dataframe and write back to the original csv file. I know that in order to write back we have to write the whole dataframe back to csv.
like this:
df1.to_csv(file_name)
However, is there any where we can write back the updated values alone to the csv instead of writing the whole file?
Please advise