Using regular expressions to pull information out of a column, remove it from that column, and put it in a new one with Pandas

There’s got to be a better way to do this, but here’s what i’m doing:

That’s simply int(something) but i did not end up using that.

As my commit message said:

OK wow lot harder to remove value from column than expected

timelog['description'] = timelog.apply(lambda x: x['description'].replace(x['tmp_timeshift']), axis=1)

https://datagy.io/pandas-add-days-date-column/

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.extract.html#pandas.Series.str.extract

Corrected these warnings:

https://github.com/pandas-dev/pandas/issues/24804#issuecomment-455265456


See https://gitlab.com/agaric/python/parse-timelogs-for-upload/ for pretty much anything i was doing with Pandas and bulk series input data manipulation.