C.V. Raman Global University Students: A Data Cleaning Log for Your Internship

C.V. Raman Global University Students: A Data Cleaning Log for Your Internship

Facebook
Twitter
LinkedIn
WhatsApp
Email

A data cleaning log is a running table that records each problem you found in a dataset, what you decided to do, how many rows were touched and why the decision was defensible. For a 14-day internship it is one of the strongest pieces of proof you can show, because it makes your reasoning visible, not just your final chart. The template, a filled example and a day-by-day plan are below.

Why a cleaning log proves more than a clean dataset

Most student portfolios show a tidy notebook and a model score. A reviewer looking at that cannot tell whether you inspected the raw file or just ran a few dropna() calls. Cleaning is where analysts make judgement calls: drop a row, impute a value, merge two spellings, cap an outlier. Each of those changes the answer, and a log is how you show you made them on purpose.

A good log does four things:

  • Makes your work reproducible. Anyone can follow your steps and arrive at the same cleaned file.
  • Shows the cost of each decision. “Dropped 37 rows” means little until you add that it was 3% of the file.
  • Separates fact from assumption. You mark which fixes were certain (an obvious typo) and which were judgement (filling a missing age with the median).
  • Gives a mentor or interviewer something to question. That conversation is where you demonstrate understanding.

If you are doing the free two-week online internship at CareerSwami in a data track, the log works well as the main artefact you attach to your final submission, alongside your notebook and a short summary. The programme offers a free offer letter and a free completion certificate after successful completion; the log is what lets you explain the work behind that certificate.

The cleaning log template: columns, definitions and what to write

Keep the log in a spreadsheet or a Markdown table in your repository. The four columns from the brief are the core; the extra columns make it far more useful and cost little effort.

Column What to write Good entry looks like
ID Sequential number so you can cite it in your report C-07
Column / scope Which field or whole-table issue price, or “whole table”
Issue found The observable problem, stated as a fact, with how you detected it “Values like ‘N/A’, ‘-‘ and blank all used for missing; found via value_counts()“
Decision made The action taken, specific enough to repeat “Converted all three tokens to NaN, kept rows”
Rows affected Count and percentage of total rows “212 (4.1%)”
Justification Why this choice beats the alternatives “All three mean unknown; dropping would lose other valid fields”
Risk / alternative What could go wrong; what you rejected “If blanks mean zero, averages are overstated”
Reversible? Yes/No, and where the raw value is kept “Yes, raw column kept as price_raw“

Rules for writing entries

  1. Count before and after. Record the row count at the top of the log and after every step that changes it.
  2. Never overwrite the raw file. Save the original in a raw/ folder and write cleaned output elsewhere.
  3. One issue per row. If a column has three problems, write three entries.
  4. Write the justification as a reason, not a restatement. “Because it was wrong” is not a reason; “because the value is physically impossible for this field” is.
  5. Log the things you chose not to change. A skipped outlier with a stated reason is a sign of maturity.

Free 2-Week CareerSwami Internship

Online, 14 days, with a free offer letter and a free completion certificate once you finish the work. Check with your college that it fits your requirement before you enrol.

Apply for the free internship

A filled data cleaning log on an illustrative messy CSV

The example below is illustrative: it describes a made-up file so you can see the writing style. The counts are invented for demonstration, and no code was run to produce them. Imagine a public CSV of used-car listings, 5,000 rows, with columns listing_id, city, brand, year, price, km_driven and fuel. Public open-data portals and community dataset sites often host files with exactly these kinds of flaws.

ID Scope Issue found Decision made Rows affected Justification
C-01 Whole table Exact duplicate rows, detected with df.duplicated().sum() Dropped duplicates, kept first occurrence 140 (2.8%) Identical in every field including listing_id, so they are repeats of one listing, not separate cars
C-02 city Same city spelled “Bhubaneswar”, “bhubaneswar “, “BBSR” Stripped whitespace, lowercased, mapped “bbsr” to “bhubaneswar” 310 (6.2%) Counts per city would otherwise be split; mapping documented in a lookup dictionary
C-03 price Stored as text with “₹” and commas, e.g. “₹4,25,000” Removed symbols and commas, cast to integer 4,860 (97.2%) Needed for any numeric analysis; no values lost
C-04 price Tokens “N/A”, “-” and blank for missing Converted to NaN; rows kept 95 (1.9%) Price is the target of analysis, so these rows are excluded from price statistics only, not from other counts
C-05 year Values such as 2031 and 1902 Set to NaN, flagged in year_flag 12 (0.2%) Future and pre-1950 model years are not plausible for this market; raw value preserved
C-06 km_driven A few values above 1,000,000 km Kept, added km_outlier flag 8 (0.2%) Could be typing errors or taxis; cannot be verified from the file, so removal would be a guess
C-07 fuel Missing in some rows Filled with “unknown”, not the most common value 260 (5.2%) Imputing “petrol” would invent information and bias fuel-type comparisons

The matching code skeleton (illustrative, not executed)

import pandas as pd

raw = pd.read_csv("raw/used_cars.csv")
df = raw.copy()
log = []  # list of dicts, written to cleaning_log.csv at the end

def record(id_, scope, issue, decision, before, after, why):
    log.append({"id": id_, "scope": scope, "issue": issue,
                "decision": decision, "rows_affected": before - after,
                "pct": round((before - after) / len(raw) * 100, 1),
                "justification": why})

n = len(df)
df = df.drop_duplicates()
record("C-01", "whole table", "exact duplicate rows",
       "dropped, kept first", n, len(df),
       "identical in all fields incl. listing_id")

For steps that change values rather than remove rows, compute the affected count by comparing the column before and after (for example, the number of cells that differ), then store it in the same structure. Finish with pd.DataFrame(log).to_csv("cleaning_log.csv", index=False) so the log is generated, not retyped.

What the example teaches

  • Only C-01 removes rows. Most good cleaning is standardising and flagging, not deleting.
  • C-06 shows a decision not to alter data, with the uncertainty stated.
  • C-07 shows an imputation rejected because it would fabricate information.
  • Percentages are against the original row count, so entries are comparable.

Which issues to hunt for: a data-quality checklist by category

Work through the file systematically instead of fixing whatever you notice first. Use this checklist as your inspection pass on Day 2 or 3.

Category What to check Quick method
Structure Header rows repeated mid-file, merged cells, trailing notes df.head(), df.tail(), open raw file in a text editor
Types Numbers stored as text, dates as strings df.dtypes, df.info()
Missing values True blanks plus placeholder tokens df.isna().sum(), value_counts(dropna=False)
Duplicates Exact and near-duplicates (same key, different spelling) duplicated(), duplicated(subset=[...])
Consistency Case, spaces, spelling variants, mixed units str.strip().str.lower(), unique() on categoricals
Validity Impossible values: negative ages, future dates describe(), filters with logical conditions
Outliers Extreme but possible values Box plot, IQR rule, sorted top and bottom ten
Cross-field logic End date before start date, total not equal to parts Row-wise comparisons
Encoding Garbled characters, odd currency or Odia/Hindi text Try encoding="utf-8", then "latin-1", compare

A decision guide for missing values

  1. Ask what the blank means. Unknown, not applicable and zero are different things.
  2. If the column is the thing you are predicting or measuring, avoid imputing it.
  3. If under a few percent of rows are affected and the pattern looks random, dropping or leaving as NaN is usually defensible. State the percentage.
  4. If missingness clusters (for instance, all from one city), investigate before deciding, because the pattern itself is a finding.
  5. Whatever you choose, add a flag column so the original state is recoverable.

A 14-day plan that builds the log as you go

Fourteen days is short, so the log must be written during the work, not afterwards. This schedule assumes roughly two hours a day; adjust to your timetable.

Days Focus Log output
1 Pick a public CSV with at least a few thousand rows; save the raw copy; write a one-paragraph description of what each column should contain Log header: source, download date, row and column counts
2-3 Run the inspection checklist above; list every issue before fixing any Draft entries with “Issue found” filled, “Decision” blank
4-6 Fix types, whitespace, case and placeholder tokens (low-risk fixes) Entries complete with counts
7-8 Handle duplicates, impossible values and missing data (judgement fixes) Entries with risk and alternative columns filled
9 Review outliers; decide keep, flag or remove Entries including “decided not to change”
10 Validate: re-run the checklist on the cleaned file; compare before/after summary statistics Before/after table
11-12 Do one small analysis (for example, average price by city) and note how cleaning changed the answer Impact paragraph
13 Tidy notebook, add README, export cleaning_log.csv Final log
14 Write a one-page summary and prepare to explain three decisions aloud Submission bundle

The impact step on Days 11-12 is what turns the log from paperwork into evidence. Computing the same average on the raw and the cleaned file, then noting the difference, shows exactly why your decisions mattered.

C.V. Raman Global University data science interns: what the public pages say about internship proof

CGU’s homepage describes the institution as a private university in Bhubaneswar, Odisha. What a student can verify publicly about internship rules is limited, so treat any assumption about how an online data internship is recognised as unconfirmed until you hear it in writing.

Here is what the official pages do show. The MBA programme page lists a 6-credit “Summer Internship Project” (code BM490) in its Semester 3 scheme table, so internships are formally part of at least that programme. The B.Tech CSE page describes a four-year NBA-accredited programme with elective-based specialisation, but that page does not set out internship rules. Duration, credits, evaluation and whether an online internship qualifies are therefore things to confirm, not assume.

Timing matters too. The university publishes a central academic calendar; the 2025-26 even-semester calendar showed a semester break from 20 April to 17 June 2026. That is last year’s pattern, and the homepage now lists a 2026-27 calendar for 2nd-semester B.Tech students, so check the current document before planning your 14 days around a break. Your cleaning log is useful whichever way your department treats the internship, because it is a document you control and can show a faculty mentor or a recruiter.

For questions about how to present work, the placement page names a Training & Placement team, department-wise placement coordinators and a shared email address, placement@cgu-odisha.ac.in.

Verification steps for CGU students documenting a data cleaning log

  1. Email your department placement coordinator (or the shared placement address) and ask in writing whether a self-completed online data internship can be recorded, and in what format.
  2. Ask your faculty advisor which document your programme uses for internship evaluation: report, certificate, supervisor letter or viva.
  3. Download the current academic calendar for your semester and note exam and break dates before fixing your 14-day window.
  4. Check your programme’s scheme or syllabus document for any internship or training course code and its credit rules.
  5. If your project uses a dataset of any sensitivity, ask whether the university requires approval before it appears in a report.
  6. Keep every reply as a PDF or screenshot and save it with your log.

Presenting the log so a reviewer reads it

A 60-entry log nobody reads is worse than a 10-entry log that is sharp. Structure the submission so the most important decisions come first.

  • Top of the README: source URL, licence if stated, download date, raw rows and columns, final rows and columns.
  • Summary line: “Started with 5,000 rows, ended with 4,860; 7 issues logged, 3 judgement calls.” Use your own real numbers.
  • Highlight three judgement calls: the ones where you could reasonably have chosen differently, with the alternative.
  • Link the log to the code: reference entry IDs as comments in the notebook, such as # C-04.
  • Include a before/after comparison: missing counts, row counts and one key statistic.

Wording that reads as rigorous

  • Prefer “Set to NaN because the value is impossible for this field” over “removed bad data”.
  • Prefer “Cannot verify; retained with flag” over “looks fine”.
  • Prefer “Affects 0.2% of rows; effect on mean price negligible after check” over “minor”.

Frequently Asked Questions

How many entries should a data cleaning log have?

Quality beats volume. For a dataset of a few thousand rows, eight to fifteen well-argued entries is typical. Log every change that alters row counts or values, plus the notable things you chose to leave alone.

Should I record percentages or only row counts?

Record both. A count tells the reader the scale; the percentage against the original row total tells them whether it matters. Use the original total as the denominator throughout so entries stay comparable.

Is dropping rows with missing values acceptable?

Sometimes. It is defensible when few rows are affected, the missingness looks random and the column is essential. It is risky when blanks cluster in one group, because you would silently remove that group from the analysis. Justify the choice either way.

How do I choose a messy public CSV for my internship?

Pick a file with at least a few thousand rows, a mix of text, numeric and date columns, and a stated source or licence. Avoid files with personal data. A file that looks slightly broken on first opening is a good choice, because there is more to log.

Can I use pandas profiling or automated cleaning tools?

You can use them to find issues faster, but the decisions and justifications must be yours. Automated tools do not know what a blank means in your dataset, and a log copied from a tool output shows no reasoning.

What is the difference between flagging and fixing a value?

Fixing changes the value; flagging leaves it and adds a marker column. Flag when you suspect an error but cannot prove it, as with an extreme mileage figure. Fix when the correct value is certain, such as stripping a trailing space.

Will a cleaning log help if I submit a CareerSwami data track project?

It gives you a concrete, checkable record of your data work to attach to your final submission and explain in your own words. The log does not change the programme’s terms; it simply makes your work easier to review.

Should I keep the raw file in my GitHub repository?

Yes, if the licence allows redistribution and the file is not huge. Otherwise store the source link and download date and describe how to fetch it. Never edit the raw copy; all changes should flow through code and be recorded in the log.

Related Data Science guides

Ready to put this into practice?

Join the free two-week CareerSwami online internship in Data Science. The internship, the offer letter and the completion certificate are free.

Start your free 2-week internship

Web Stories

Scroll to Top