DataLane

Python problem track

Stats the analyst pad asks

NaN-aware means, variance, median, z-score, and a weighted KPI. Spreadsheet instincts, code you can defend.

7 problems · ~62 min total · Data Analyst · BI Analyst · Analytics Engineer · Data Engineer

Track progress 0/7

0% complete

Start with problem 1
  1. Step 1 · ~8 min · Tesla, Google

    Mean ignoring NaN

    Return the arithmetic mean after dropping NaN values, rounded to 2 decimals.

    PythonNumPyPyTorch
    mediumProNot started
  2. Step 2 · ~8 min · Meta, Two Sigma

    Population variance

    Return the population variance of x (divide by n, not n-1), rounded to 4 decimal places.

    PythonNumPyPyTorch
    mediumProNot started
  3. Step 3 · ~8 min · Jane Street, Google

    Population standard deviation

    Return the population standard deviation of x, rounded to 4 decimal places.

    PythonNumPyPyTorch
    mediumProNot started
  4. Step 4 · ~8 min · Amazon, Bloomberg

    Median

    Return the median of x. For even length, average the two middle values. Round to 4 decimals.

    PythonNumPyPyTorch
    mediumProNot started
  5. Step 5 · ~8 min · Airbnb, Google

    Weighted mean

    Return the weighted mean of values with weights, rounded to 4 decimals. Weights are positive and the same length as values.

    PythonNumPyPyTorch
    mediumProNot started
  6. Step 6 · ~12 min · Jane Street, Citadel

    Z-score

    Standardize x with population mean and std: (x - mean) / std. Return a list rounded to 4 decimals. If std is 0, return zeros.

    PythonNumPyPyTorch
    hardProNot started
  7. Step 7 · ~10 min · Bloomberg, QuantCo

    Moving average

    Return the simple moving average of x with window w (valid / trailing windows only), each value rounded to 4 decimals.

    PythonNumPyPyTorch
    hardProNot started

Other tracks

↑↓ navigate openesc close