POST api.scientificmicroservices.com/missinggraph

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 "Authorization: Bearer $TOKEN" \
--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

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)
]

URL_MISSINGNESS = "https://api.scientificmicroservices.com/missinggraph"
headers = {"Authorization": f"Bearer {token}"}
response = requests.post(URL_MISSINGNESS, headers=headers, json=sample_data_missing)

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



library(jsonlite)
library(httr2)

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)
    )

response <- httr2::request(url) |>
  httr2::req_auth_bearer_token(token) |>
  httr2::req_body_json(sample_data, na = "null") |>
  httr2::req_perform()

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