Scott Manley did a video about this - turns out this is pretty energy intensive (asteroids are heavy & you are spinning up the whole thing) & not doable at all for many asteroid types due to insufficient material strength of the asteroid. Therefore, internal centrifuges in an asteroid cavern or spinning stations made from metal and/or advanced materials (wheels up to ONeil Island 3 design) are a much better bet than spinning asteroids.