Linked Questions

0 votes
2 answers
13k views

I did check a lot of different related Q'n'A (see linked questions), but none adressed my specific problem, mostly it was about different datatypes or requirements. The attempt is to use this snippet ...
Cadoiz's user avatar
  • 1,704
0 votes
4 answers
4k views

I am trying to return return a list of dictionaries as part of a get request. I'm calling the function below. def get_data(id): selected_data = Database.get_date(id) json.dumps(selected_data, ...
Generaldeep's user avatar
0 votes
2 answers
3k views

This should be simple so I'm hoping some can help with this quite quickly. I have the following basic python script: import boto3 elb = boto3.client('elb') print(elb.describe_load_balancers()) When ...
Zanmato's user avatar
  • 235
5 votes
2 answers
2k views

When I try to return JSON containing datetime value, I'm getting File "/usr/lib/python2.7/json/encoder.py", line 178, in default raise TypeError(repr(o) + " is not JSON serializable") TypeError:...
Maksym Polshcha's user avatar
2 votes
2 answers
3k views

I am working on a dataset and I applied to_json() method to export a pandas dataframe in a json file. I will then use this json file to upload to MongoDB. However I realise that the datetime format ...
snow's user avatar
  • 250
3 votes
2 answers
2k views

I am trying to return an object to a Chart JS application. The data was initially from a dataframe in pandas. So this was the original object generated. {'datasets': [{'label': 'Door_08', 'data': [{'...
Nikko's user avatar
  • 1,572
1 vote
1 answer
3k views

I created a dictionary and was trying to dump it as a json file, but had problems due to the type of the key being a datetime. In my researches I found solutions for the values but not for the keys. ...
luix10's user avatar
  • 49
1 vote
2 answers
3k views

I'm using Redis (phpredis) to share data between my Laravel and my Python app. Within Laravel, I save on a specific channel my array: $data = MyModel::where('start_date','>', "2018-05-02 10:00:00"...
Sebastien D's user avatar
  • 4,502
0 votes
1 answer
3k views

I've recently used sqlacodegen When I try and run against the generated code it get this message that I've been unable to fix: Could not determine join condition between parent/child tables on ...
JGFMK's user avatar
  • 8,982
1 vote
0 answers
3k views

Im using AWS lambda(using python 2.7) to invoke StackResource api to get the Stack Id of the resource created as part of nested stack .Im getting below error "An error occurred during JSON ...
shiv455's user avatar
  • 7,862
0 votes
1 answer
2k views

My dataset looks like following. Using altair for visualization. I am trying to plot timeseries plot such that my time is on X axis and pickups are on y-axis and color represents day of the week. My ...
Data_is_Power's user avatar
0 votes
1 answer
1k views

I'm calling a SOAP WebService using Zeep, and it returns a JSON-like response with a datetime object. I want to write a micro-service using Flask and return proper JSON response. However, Flask ...
h q's user avatar
  • 1,560
2 votes
1 answer
2k views

I am writing an API which queries a Cassandra 2.1.2 based database and returns results in JSON format. I am using cqlengine for this. Here is the simplified schema - class Checkins(Model): ...
Arovit's user avatar
  • 3,759
0 votes
1 answer
2k views

I have created in postgresql a table, using the code below : create table spyResults (id serial not null primary key, info jsonb not null); Now, in Python I want to insert the data into that table. I'...
Sanjay's user avatar
  • 75
0 votes
2 answers
1k views

Within the following class I am trying to save some state information to a json file, however when I attempt to save a dictionary I come across a TypeError: '<li>...stuff...</li>' is not ...
jmunsch's user avatar
  • 24.3k

15 30 50 per page