I don't much about mongodb but I could able to retrieve elements but how do I store the values in array into python list variable. It gives me object id and all other but I can't retrieve the elements of array for use Help me through this. let suppose good_trn consists [1,23,3344,56,6] How could i get those values from using it for statistics
import pymongo
from pymongo import MongoClient
client=MongoClient("URL")
print(client.list_database_names())
db = client["creditscore"]
collection = db["creditscore"]
good_income = collection.find({"good_trn": {"$gt": 0}})
print(good_income[0])