Skip to content

Instantly share code, notes, and snippets.

View christinabo's full-sized avatar

Boididou Christina christinabo

View GitHub Profile
{"nodes": [{"id": "AJ Howard", "weight": 2}, {"id": "Abeth Farag", "weight": 2}, {"id": "Abigail Browning", "weight": 2}, {"id": "Adam", "weight": 2}, {"id": "Adam Brozowski", "weight": 3}, {"id": "Adam LaMontagne", "weight": 10}, {"id": "Adam Raines", "weight": 1}, {"id": "Adam Speen", "weight": 4}, {"id": "Adamo Ciarallo", "weight": 16}, {"id": "Agnes Hjelm", "weight": 1}, {"id": "Agnieszka Pluwak", "weight": 3}, {"id": "Agus Zero", "weight": 2}, {"id": "Aila Floyd", "weight": 4}, {"id": "Ainoa Pons", "weight": 1}, {"id": "Alain Fragman", "weight": 1}, {"id": "Alba Mengual", "weight": 15}, {"id": "Albena Lekova", "weight": 1}, {"id": "Albert Ferran", "weight": 6}, {"id": "Albert Roca Vila", "weight": 1}, {"id": "Alberto Meucci", "weight": 5}, {"id": "Aleix Prats Ferrer", "weight": 1}, {"id": "Alejandro Cabanillas Barbacil", "weight": 3}, {"id": "Alena Nu\u00dfbeck", "weight": 1}, {"id": "Alevtina Kapusta", "weight": 1}, {"id": "Alex Gudovich", "weight": 1}, {"id": "Alex Kuznetsov", "weight": 1}, {"id": "Ale
@christinabo
christinabo / read_from_url
Last active January 30, 2019 11:44
Example for reading data from url
import pandas as pd
# example 1
data = pd.read_csv("https://raw.githubusercontent.com/cs109/2014_data/master/countries.csv")
# example 2
data = pd.read_csv(http://censusdata.ire.org/06/all_050_in_06.P1.csv)
@christinabo
christinabo / bool_query_example.txt
Last active April 5, 2017 11:54
Example using a bool query in ElasticSearch
"query": {
"nested": {
"path": "product_vendors",
"query": {
"bool" :{
"must" : [
{
"terms": {"product_vendors.id": ["71320"]}
},
{