Python Forum
Trying to get counts/sum/percentages from pandas similar to pivot table
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to get counts/sum/percentages from pandas similar to pivot table
#3
I understand that, its provided as example of how im creating the json.
Im looking for the output to be like my example in the first line that has my values.

The point of adding the sample code was to show that the output json file does not have this portion

data = '[

It outputs starting like this

{"

So im trying to get it so that the json output wraps the data starting with data = '[{ }]';
Reply


Messages In This Thread
RE: Trying to get counts/sum/percentages from pandas to create JSON file - by cubangt - Sep-15-2023, 07:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Converting column of values into muliple columns of counts highland44 0 318 Feb-01-2024, 12:48 AM
Last Post: highland44
  Using pyodbc&pandas to load a Table data to df tester_V 3 918 Sep-09-2023, 08:55 PM
Last Post: tester_V
  python pandas sql table with header mg24 3 2,124 Dec-08-2022, 08:31 PM
Last Post: Larz60+
  Need Help! Pandas EXCEL PIVOT psb3958 1 994 Nov-13-2022, 10:37 PM
Last Post: deanhystad
  Read All Emails from Outlook and add the word counts to a DataFrame sanaman_2000 0 1,937 Sep-15-2022, 07:32 AM
Last Post: sanaman_2000
  For Word, Count in List (Counts.Items()) new_coder_231013 6 2,770 Jul-21-2022, 02:51 PM
Last Post: new_coder_231013
  group by create pivot table python dawid294 1 1,368 Jun-22-2022, 06:13 PM
Last Post: Larz60+
  PyPi Download Counts and Warehouse Migration? tlee0818 1 1,355 Mar-20-2022, 07:41 PM
Last Post: snippsat
  Sum the values in a pandas pivot table specific columns klllmmm 1 4,764 Nov-19-2021, 04:43 PM
Last Post: klllmmm
  pandas pivot table: How to find count for each group in Index and Column JaneTan 0 3,426 Oct-23-2021, 04:35 AM
Last Post: JaneTan

Forum Jump:

User Panel Messages

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