Join us and get access to thousands of tutorials and a community of expert Pythonistas.
This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.
Gotchas and Limitations
00:00 In previous lessons, you learned about how to build charts with Altair. However, there are some gotchas and limitations to be aware of. First of all, Altair doesn’t like datasets that are more than 5,000 rows.
00:12
This actually triggers a MaxRowsError. So Altair is not really a big data tool. Altair is HTML by default, which means it’s suitable for Jupyter-like interactive environments.
00:23 For non-interactive Python scripts, it might not be the right visualization tool. There’s limited customization available. If you want fine-grained control over your charts, Matplotlib is a better choice.
00:34 There are also somewhat limited chart types compared to other libraries. Matplotlib or seaborn have a much more extensive variety of chart types. The key thing to remember is Altair is perfect for quick, expressive exploration.
00:49 It lets you write a minimal amount of code and get interactive charts out very quickly, which is great for exploring a new dataset. But if you want publication-ready charts where you control every aspect of it, Altair might not be the right choice, and you might want to use something like Matplotlib.
01:07 And that’s it. All that’s left in the final lesson is to summarize everything you’ve learned.
Become a Member to join the conversation.