• Skip to primary navigation
  • Skip to main content

DebKR

To the Stars

  • About
  • Blog
  • Contact

data

Simple Tagging Engine (updated using tuples)

Simple Tagging Engine (updated using tuples)

07/05/2016 By debkr

simple-python-tagging-engineMy simple Python Tagging Engine has now been updated to incorporate learnings about tuples, and incorporates simplified ways of sorting and returning counted values from a dictionary. Code and simple documentation available on GitHub: https://github.com/debkr/blog_tagger.

 

Filed Under: Blog, Personalised Training Plan, Programming, Programming Projects Tagged With: coding101, data, database, keywords, programming, tagging engine, tuple

Coding 101 (part 7)

Coding 101 (part 7)

29/04/2016 By debkr

coding-101-dictionariesLists work great but they leave something on the table:
I’ve been building a Tagging Engine in Python as a little exercise to help me learn by doing, using my knowledge so far. It became clear pretty quickly that I needed a better way to handle pairs of data. In this case I was looking at a list of words and the number of times each of them appeared in a text, so that I could rank the most common words by order of significance (frequency). If I just used one list and appended both the word and its count to the list, one value after the other, there was no way I could sort by count number.

I got round this problem by having two lists, one for the words and another for the word counts. I could then manipulate the data as needed. This did work fine in the simple program I wrote, but it was my usual unwieldy, sledgehammer approach again. I knew there was a way I could handle that pair of data points better – using Python’s Dictionaries functionality – but I didn’t want to rush ahead of the curve. Well now I get the chance to learn all about dictionaries. [Read more…] about Coding 101 (part 7)

Filed Under: Blog, Personalised Training Plan, Programming Tagged With: coding101, count, data, database, dict(), dictionary, function, items(), key/value pair, list, order, python, return, value, variable, word counts

Coding 101 (part 6)

Coding 101 (part 6)

16/04/2016 By debkr

spaghettiWhen strings become spaghetti:
Working with strings and files, particular when using the for {line} in {filehandle}: construct, allows us to do some cool manipulation of data, by finding, splitting and stripping the data into different chunks based on some repeating factor (such as a comma spearating each value in order), then sorting, counting and totalling those values through iterative loops. [Read more…] about Coding 101 (part 6)

Filed Under: Blog, Personalised Training Plan, Programming Tagged With: append(), category, code, coding101, data, element, find, function, handle, index, iteration, key/value pair, len(), length, list, loop, numeric, position, python, range, repeating, return, sorting, split(), startswith(), string, text, value, variable

Marketing Analytics: Applications & Innovations

Marketing Analytics: Applications & Innovations

15/04/2016 By debkr

rubiks-cubeCustomer analytics – a recap:
As we’ve seen in previous posts, there are five important elements to the process of marketing/customer analytics:

1. Start with the data: we need to ensure we have the right data, but we should make sure this is individual-level data – data held for each customer. Without it we can’t do effective customer analytics. So a big question for the company is: how to build the right infrastructure to collect that level of data, with that level of granularity?

2. Exploring the data: we shouldn’t start with big complex models, but look always to start simply with a basic exploration of the data. Even when we go on to use complex mathematical or statistical models, we still need to be able to understand the underlying data, to be able to sense check our explorations and predictions against that data which allows us confidence to assert, yes the underlying data does suggest/show that our modelled effects are real or reasonable. [Read more…] about Marketing Analytics: Applications & Innovations

Filed Under: Blog, Data Analytics, Digital Business Systems, Personalised Training Plan Tagged With: analytics, business, channel, contribution, customer, data, digital, marketing, marketing analytics, offers, online, product, profit, profits, purchase order, purchasing, sales, web advertising

Coding 101 (part 5)

Coding 101 (part 5)

11/04/2016 By debkr

coding-101-data-structuresThis post follows on from earlier Coding 101 posts and records my responses and learnings from the highly-recommended Python programming book and Coursera specialisation by Charles Severance (see References below).

Opening data files:
In all our previous examples we used data as a constant (i.e. hard-coded into the program some way) or we prompted the user to enter some data which was then manipulated by the program in some way. We want to be able to read data from a variety of sources though – either from files, or from the web – and we know these are going to be much larger data sources, so we’ll need to be able to access and save files on our hard drive somewhere. [Read more…] about Coding 101 (part 5)

Filed Under: Blog, Personalised Training Plan, Programming Tagged With: coding101, count, data, email, file, filename, function, input, line, loop, manipulate, mode, open, print, program, prompt, python, read, reading, rstrip(), searching, startswith(), string, strip, text, type, user

Coding 101 (part 4)

Coding 101 (part 4)

10/04/2016 By debkr

This post follows on from earlier posts (Coding 101 (part 1) ~ (part 2) ~ (part 3)) and records my responses and learnings from the highly-recommended Python programming book and Coursera specialisation by Charles Severance (see References below).

A quick recap on strings:
Strings are computer-speak for characters, specifically where some object or value has the ‘type’ string. Type is an attribute Python applies to any given object or value so it knows how to handle that object or value, i.e. what kinds of operations can and cannot be applied to it. String, and two numeric types – integer and float – are the most common types within Python.

A string may contain one or more characters, so ‘a’ and ‘0’ are strings, just as ‘abcdefghij’ and ‘Hello world. I am Python.’ are. [Read more…] about Coding 101 (part 4)

Filed Under: Blog, Personalised Training Plan, Programming Tagged With: coding101, data, email, find, function, index, integer, length, loop, name, numeric, position, python, read, return, startswith(), string, strip, type, value, variable

Prescriptive Marketing Analytics: Strategy into Action

Prescriptive Marketing Analytics: Strategy into Action

06/04/2016 By debkr

strategy-prescriptive-analyticsA quick refresher on the three kinds of analytics:
1. Descriptive: collects data which describes customers’ past actions and behaviours, and analyses it to try to find patterns which explain that behaviour;

2. Predictive: takes the historical descriptive data and patterns contained within it and uses that to try to predict what those customer might do in the future;

3. Prescriptive: takes a more strategic approach and uses data, trends and predictions about customer behaviours to help inform recommendations on actions (such as process changes, changes in marketing tactics) which might help change the customers’ behaviours and move the company closer to achieving it’s business goals. [Read more…] about Prescriptive Marketing Analytics: Strategy into Action

Filed Under: Blog, Data Analytics, Data Science, Personalised Training Plan Tagged With: actions, costs, curve, customer, data, demand, descriptive analytics, maximisation, model, objective, optimisation, prescriptive analytics, price, pricing, problem solving, product, profit, revenue, sales, solutions, strategic, strategy

Next Page »

Copyright © 2016–2025 · Powered by WordPress On Genesis Framework · Log in

  • Writing
  • Developing
  • Consulting