I have an array of NamedTuples that I populate in a for loop. Eventually, I want to convert it to a DataFrame. If I initialize the array as `NamedTuple[ ]`

, the conversion fails. However, initializing as `Any[ ]`

works, but I want to avoid `Any[ ]`

. The code below provides a demonstration of this behavior. Why does it fail for `NamedTuple[ ]`

, but not for `Any[ ]`

and is this intended?

```
using DataFrames
#Works
x1 = [(x=rand(),y=rand([:a,:b])) for i in 1:10]
d1 = DataFrame(x1)
#Works
x2 = Any[(x=rand(),y=rand([:a,:b])) for i in 1:10]
d2 = DataFrame(x2)
#Does not work
x3 = NamedTuple[(x=rand(),y=rand([:a,:b])) for i in 1:10]
d3 = DataFrame(x3)
```