title: Dask Df convert All Dtype using dictionary
body: <pre><code>ddf = dd.read_csv(&quot;data/csvs/*.part&quot;, dtype=better_dtypes)
  </code></pre>
  <p>Is there an easy equivalent way to convert all columns in a dask df(converted from a pandas df) using a dictionary. I have a dictionary as follows:</p>
  <pre><code>better_dtypes = {
      &quot;id1&quot;: &quot;string[pyarrow]&quot;,
      &quot;id2&quot;: &quot;string[pyarrow]&quot;,
      &quot;id3&quot;: &quot;string[pyarrow]&quot;,
      &quot;id4&quot;: &quot;int64&quot;,
      &quot;id5&quot;: &quot;int64&quot;,
      &quot;id6&quot;: &quot;int64&quot;,
      &quot;v1&quot;: &quot;int64&quot;,
      &quot;v2&quot;: &quot;int64&quot;,
      &quot;v3&quot;: &quot;float64&quot;,
  }
  </code></pre>
  <p>and would like to convert the pandas|dask df dtypes all at once to the suggested dtypes in the dictionary.</p>
  <pre><code>ddf = ddf.astype(better_dtypes).dtypes
  </code></pre>