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

APC9 min readSecurity
How Do You Know If You’ve Been Hacked
Cyberattacks don’t look like you might expect – and they certainly don’t look like they do in the movies. If your security is compromised, you probably won’t see a big flashing sign saying “YOU HAVE BEEN HACKED”, or weird skull-and-crossbones graphic
APC3 min read
Make Windows better
Apple has been phasing out iTunes since 2019, and has now officially launched Windows apps on the Microsoft Store that replace the service – having initially made them available in beta in early 2023. In Apple Music (pictured above) you can access so
APC2 min read
Panasonic’s Astrova In-flight Entertainment System Will Make Economy Travel Less Arduous
Flying in cattle class in the 21st century is generally not all that enjoyable – unless you’re 150cm tall or an excited child that is. You have to put up with shrinking legroom, long queues at check in and security, unappealing food and generally poo

Related