APC

Working with lists in Python

When we began preparing to look at machine-learning in Python with our initial two-part primer a few issues ago, we very briefly touched on the concept of lists. Like a column in a spreadsheet, a list is an incredibly versatile and important component of Python for allowing you to access a sequence of data through a simple numeric index. This month, we’re unpacking lists in more detail and looking at how you can manipulate them in ways that make sense from a machine-learning perspective.

LISTS 101

The majority of machine-learning algorithms rely on receiving data in a common flat or two-dimensional spreadsheet form –

You’re reading a preview, subscribe to read more.

More from APC

APC3 min read
MSI Project Zero B650M & Pano M100R PZ
PRICE $349 (motherboard); $149 (case) WEB www.msi.com Cables. You can’t live with them and you can’t yet live without them. Or can you? If you can’t see them, do they really exist? Deep philosophical questions aside, the humble PC has come a long wa
APC6 min read
The Problem Solvers
I was inspired by the Hydra Mini ITX Chassis to go out and build a system to replace my three-year-old setup. However, having only recently reinstalled Windows 11 from scratch, I’m not looking forward to going through the same process again so soon.
APC5 min read
Snapdragon X Elite Beats Apple, AMD And Intel Flagship Mobile CPUs
Microsoft is set to unveil its Surface Pro 10 and Surface Laptop 6 in June, and the tech giant has high expectations for the ARM CPUs that will power those PCs. Microsoft is reportedly confident that its new Surface PCs running on Qualcomm Snapdragon

Related