What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-06 12:30:03
extract values from a column in json format python
import pandas as pd d1 = '{"605":{"price":"570", "address":"946", "status": "done", "#result":"good" }}' d2 = '{"254":{"price":"670", ... Add solution -
Python 2021-10-05 06:29:04
how to read the csv file using pandas in aws lambda
import json import os import boto3 import csv import sys import pandas as pd from io import BytesIO s3_client = boto3.client('s3') bucket_name ='bucket_name' s3_file_name ='s3_file_name.csv' def lambda_handler(event, context): print(event) try:... Add solution -
Python 2021-10-03 02:17:03
python get city name from IP
import re import json from urllib2 import urlopen url = 'http://ipinfo.io/json' response = urlopen(url) data = json.load(response) IP=data['ip'] org=data['org'] city = data['city'] country=data['country'] region=data['region'] print 'Your IP detail\n '... Add solution