this will be space inefficient for large objects

do something like

```python
result = np.empty_like(xvalues)
result.fill(np.nan)
```