cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
Column Filling
David_Burnham
Super User (Alumni)

This script will fill missing values within a column based on other occurrences of data7114_datatable.JPG:

In this illustrative data table, we might choose to forward-fill the Jan Ozone column or back-fill the Dec Ozone column.

For example, forward-filling the Jan Ozone column would set the value of 2.63 for the whole of 1955; back-filling the Dec Ozone column would set the value to 3.83 for the whole of 1955.

This type of data often arises when two tables are joined, but they have differing sample rates.

The script allows you to specify the direction of the fill, and whether to fill in-place or to create a new column:

7115_colfill.png