# A question about data type

**URL:** https://discourse.julialang.org/t/a-question-about-data-type/41204
**Category:** General Usage
**Tags:** question
**Created:** [June 11, 2020, 3:01pm UTC](https://discourse.julialang.org/t/a-question-about-data-type/41204 "2020-06-11T15:01:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)
#### Post date: [June 11, 2020, 3:01pm UTC](https://discourse.julialang.org/t/a-question-about-data-type/41204/1 "2020-06-11T15:01:19Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/7/a/7ae5a4181a0a656875aeebfb470c192f33b6e0e0.png)  
my data is not empty,but it always "missing ",so my initseeds function does not work.  
thanks!

```julia
using CSV,Clustering,Gadfly
data=CSV.read("D:\\数据\\数据.csv")
load=convert(Array,data[90001:120000,5])
solar=convert(Array,data[90001:120000,8])
wind=convert(Array,data[90001:120000,9])
Dload=reshape(load,24,:)
Dsolar=reshape(solar,24,:)
Dwind=reshape(wind,24,:)
Dlsw=[Dload;Dsolar;Dwind]
#D-Resl=reshape(RESL,24,:)
#initseeds(:rand,convert(Matrix,Dlsw),12)
#result=kmeans(Dlsw',12)
#Gadfly.plot(data,)

```

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [June 11, 2020, 6:41pm UTC](https://discourse.julialang.org/t/a-question-about-data-type/41204/2 "2020-06-11T18:41:05Z")

</div>

This is hard to answer without a minimum working example. Are you saying that the data you read in from csv is always `missing`? Or that the resulting columns of your DataFrame are `Union{T, Missing}`?

If this is just an issue of passing the correct type to a function you can narrow the type of your columns by doing `disallowmissing!(data)`, but this will only work if there are no actual `missing` values in the data. If you do have `missing` I suppose the best way of proceeding depends on your actual use case!?
