I can't get the time to increment in hours

Beginner and first time asker here! I’ve run into a problem with my first project. I’m trying to write a class method that adds an hour on to the current time for every 180 within a big number. I’m only testing a basic version at the moment, but I cant get it to work, the… Read More I can't get the time to increment in hours

python – create new column based on last two letters of a string

I have a large dataframe containing many thousand URNs each with a country code on the end. I would like to create a new column that isolates those country codes: my df: urn 0 CS16-1533232-GB 1 CS16-1533233-GB 2 CS16-1533234-GB 3 CS16-1533235-BZ 4 CS16-1533238-GB Desired output: urn country 0 CS16-1533232-GB GB 1 CS16-1533233-GB GB 2 CS16-1533234-GB… Read More python – create new column based on last two letters of a string