Python Forum
Python dictionary with values as list to CSV
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python dictionary with values as list to CSV
#5
I got the answer,
Since no one was able to help with the answer, I will myself post it for someone who might need help with this question.

we just need to convert dictionary to pandas dataframe then apply transpose to it followed by df.to_csv
Reply


Messages In This Thread
RE: Python dictionary with values as list to CSV - by Sritej26 - Mar-27-2021, 05:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dictionary in a list bashage 2 529 Dec-27-2023, 04:04 PM
Last Post: deanhystad
  filtering a list of dictionary as per given criteria jss 5 655 Dec-23-2023, 08:47 AM
Last Post: Gribouillis
  need to compare 2 values in a nested dictionary jss 2 846 Nov-30-2023, 03:17 PM
Last Post: Pedroski55
  Copying the order of another list with identical values gohanhango 7 1,133 Nov-29-2023, 09:17 PM
Last Post: Pedroski55
  Search Excel File with a list of values huzzug 4 1,211 Nov-03-2023, 05:35 PM
Last Post: huzzug
  Sort a list of dictionaries by the only dictionary key Calab 1 480 Oct-27-2023, 03:03 PM
Last Post: buran
  Comparing List values to get indexes Edward_ 7 1,131 Jun-09-2023, 04:57 PM
Last Post: deanhystad
  Printing specific values out from a dictionary mcoliver88 6 1,368 Apr-12-2023, 08:10 PM
Last Post: deanhystad
  How to add list to dictionary? Kull_Khan 3 989 Apr-04-2023, 08:35 AM
Last Post: ClaytonMorrison
  Adding values with reduce() function from the list of tuples kinimod 10 2,623 Jan-24-2023, 08:22 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

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