AI School · Level 4 · Practical case · The pharmacy's numbers

Export your CSV and ask it what happened last month

Léelo en español →

Reading time: about 10 minutes

The situation. Your pharmacy software has ten reports and none of them answers what you actually want to know: why May was down, what stopped being ordered, what went up without you noticing.

This is the case that most changes your relationship with your own data, and also the one that demands the most care. You will export a file from your software, strip everything that identifies a person, and then ask the AI in plain language what would normally cost you an afternoon of pivot tables. The two important verbs are in that order: strip first, ask second.

What you need to hand: Being able to export to CSV or Excel from your software (every Spanish pharmacy system does it, usually under "Reports → Export"). And having read the patient data privacy lesson, because this is where it applies.

Step by step

  1. Export the month, not the year

    The temptation is to export everything. Do not, not the first time: a twelve-month file is tens of thousands of rows, the model truncates it without telling you, and it will answer about whatever chunk fitted. A chunk it picked and you cannot see.

    Export one month with these columns and no others: date, product code, product description, units, amount. If your software lets you choose columns, drop the rest in the export itself — faster than deleting afterwards, and you will not miss one.

    If your software only exports "everything", open it in Excel and delete the extra columns first. Save it under a new name: sales-may-clean.csv. The original is left alone.

← All practical cases Back to the school →