Python Forum
Simple Dictionary save and recover
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Dictionary save and recover
#11
Yes it opens in Excel on my desktop, not sure what my android phone uses though - but the display is the same.
It's most intelligible with both lines ordered into columns rather than text file version, and it would have been a cosmetic improvement to align the data justification as well for easy viewing. However, it's not essential so I will leave it as is.

Many thanks
Astrikor.
Reply
#12
(Aug-21-2018, 03:26 PM)Astrikor Wrote: and it would have been a cosmetic improvement to align the data justification as well for easy viewing.
again, it's not possible with csv file. It's the excel or other spreadsheet program like open office that process the datam try to guess what type are and convert them. You have some control over it during the import process. But if you want to make your data looks nice, then you should use different format (i.e. other users may not use spreadsheet application to view the file). Make xlsx fie for example with desired formatting, using library like openpyxl
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#13
Apparently my android phone does not have any spreadsheet programs, but shows the CSV file in a preview mode without opening it. I have no idea what program it uses for preview, but it does look exactly like my desktop excel format. I guess other users would have a similar preview function. Thanks for the xlsx suggestion but it is easier to stick with the CSV format for now.
Astrikor
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to save to multiple locations during save cubangt 1 564 Oct-23-2023, 10:16 PM
Last Post: deanhystad
  simple f-string expressions to access a dictionary Skaperen 0 1,532 Jul-15-2020, 05:04 AM
Last Post: Skaperen
  How to save dictionary sampitosh 3 2,459 Apr-24-2020, 04:43 AM
Last Post: ndc85430
  How to recover from exception in pdb? swimbikerun 1 2,961 Jul-29-2017, 01:51 AM
Last Post: Larz60+
  Recover currently running script? kbriden 3 4,490 Dec-07-2016, 01:53 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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