MissingGraph

POST api.scientificmicroservices.com/missinggraph

Summarize where data is missing

MissingGraph processes an entire dataset, providing a graph of the location of missing values.

The response is a png object containing a graph of the rows and columns of the dataset, colour coded by whether they are missing or present.

Graph of data highlighting cells that have missing data, revealing a pattern that is difficult to otherwise see.
Example usage in terminal

 curl --request POST \ 
--url 'https://api.scientificmicroservices.com/missinggraph' \
--header 'Content-Type: application/json' \
--header 'email:[YOUR_EMAIL]' \
--header 'key:[YOUR_KEY]' \
--data '[
{"Column1":35.9146,"Column2":351.4387,"Column3":267.0756},
{"Column1":48.9403},
{"Column1":87.4787,"Column3":205.4431}]'





*Ensure your MCP Client is connected and authenticated at mcp.scientificmicroservices.com/mcp* 
 

Show me where the missing data is in this dataset. 

Here is the data in JSON format: 

[
{"Column1":35.9146,"Column2":351.4387,"Column3":267.0756},
{"Column1":48.9403},
{"Column1":87.4787,"Column3":205.4431}]



import json
import requests

headers = {
    'email': YOUR_EMAIL,
    'key': YOUR_KEY,
    'Content-Type': 'application/json'
}

url_missing = "https://api.scientificmicroservices.com/missinggraph"

c1 = [35.9146, 48.9403, 87.4787]
c2 = [351.4387, None, None]
c3 = [267.0756, None, 205.4431]

sample_data_missing = [
    {"Column1": v1, "Column2": v2, "Column3": v3}
    for v1, v2, v3 in zip(c1, c2, c3)
]

response = requests.post(url_missing, headers=headers, json=sample_data_missing)

with open("image_file.png", "wb") as file:
            file.write(response)



library(jsonlite)
library(httr)

url <- "https://api.scientificmicroservices.com/missinggraph"

sample_data <- data.frame(
    "Column1"= c(35.9146 , 48.9403 , 87.4787),
    "Column2" = c(351.4387, NA , NA),
    "Column3" = c(267.0756 , NA , 205.4431)
    )

sample_json <- toJSON(sample_data)
response <- POST(
  url = url,
  add_headers(  'email'= YOUR_EMAIL,
                'key' = YOUR_KEY,
                'Content-Type' = 'application/json'
  ),
  body = sample_json,
  encode = "json"
)

print(reponse)


Input types allowed
Graphic showing that input types allowed are strings, numbers, pair of lists only
Response fields
PNG Image
Size 400 x 400 px