DataPI.

What would you like to understand?

Preparing search…
    All results and search filters →
    Social data engineering

    Audit a social dataset before drawing the first chart

    Check what was requested, returned, missing, duplicated, and observed at different times before a tidy chart hides the gaps.

    4 min read

    A file with 10,000 rows can be less useful than a file with 500 well-defined observations. Row count does not tell you whether a requested period is complete, whether counters came from the same observation time, or whether one viral thread has been copied hundreds of times.

    This is a practical audit method, not a claim that a public sample represents a population. The worked counts below are synthetic. Keep the audit beside the dataset so a later reader can understand what the chart includes and excludes.

    Write the collection envelope

    Record the question, platform, entity list, requested dates, query version, operation ID, request ID, and collection time. Distinguish publication time from observation time: one describes when content appeared, the other when its changing counters were captured. Store the original timezone or UTC value, then state the reporting timezone.

    Check whether the operation actually promises a complete history, a bounded latest sample, or a search result. A response limited to recent items cannot justify “all posts this year.” Read the pagination and source limits, and retain the returned coverage state rather than replacing it with a convenient “complete” label.

    Reconcile requests with usable observations

    In a synthetic collection, 1,000 rows arrive. Fifty are duplicates, 30 lack the timestamp needed for the time-series question, and 20 are outside the requested period. The usable count for that question is 900, provided the exclusion groups do not overlap. Keep exclusion reasons rather than silently dropping records.

    Deduplication should use stable platform item identity where available. Similar text alone is a weak key: two people can write the same short phrase, while one item can change its text. Repeated observations of the same item may be valuable for change analysis; they should be modeled as observations, not mistaken for new posts.

    Synthetic audit stepCountMeaning
    Returned rows1,000Transport succeeded; analysis not yet validated
    Unique items950Duplicates removed by item identity
    In-window rows with usable timestamps900Usable for this specific time-series question
    Population coverageUnknownNo verified total for all relevant public content

    Keep null, zero, unavailable, and unobserved distinct

    A zero means the source observed a value of zero. Null may mean the field was not supplied. Unavailable may mean the platform does not expose it. Unobserved may mean collection did not run for that period. Flattening these states into zero creates false dips and makes some accounts appear worse solely because less data was returned.

    Check required fields for the intended calculation. A follower-based rate cannot be calculated honestly when followers are missing. Exclude that calculation with an explanation, while retaining the item for other questions it can answer. Completeness is specific to a task, not a single universal property of a row.

    Inspect selection before interpreting a trend

    Look at counts by day, source, language, format, and entity. A sudden change may coincide with a query revision or source failure. Read a small sample of included and excluded records. Topic words with several meanings often create convincing but irrelevant results.

    Keep the common subset when comparing two periods. If coverage differs, show the comparison on unchanged sources and disclose the broader sample separately. Do not estimate a population total by multiplying a partial sample unless you have a defensible sampling design and know its inclusion probabilities.

    Make the audit reproducible in DataPI workflows

    Preserve request identifiers and the original result envelope before transformation. For asynchronous operations, distinguish accepted requests from completed results. A 202 response confirms acceptance; it does not establish data quality. Read the result before the documented retention window expires if your workflow needs durable copies.

    Attach an audit summary to downstream tables: usable count, excluded count by reason, missing fields, coverage state, and observation range. A dashboard can then show a gap or warning instead of a false number. Re-run the checks when the contract, query, or source changes.

    Run this method on your own data

    Start with a credential and read the coverage of each response before drawing a conclusion. Plans are monthly, and there is no checkout on this site.