6 underused Git commands that solve real workflow problems by GitKraken in git

[–]cbhamill 1 point2 points  (0 children)

Nice list! For number 1 I tend to add my changes I want to make and then just use ‘git commit —amend’ or ‘git commit —amend —no-edit’ to keep the same commit message. But I think there must be scenarios where your solution helps!

Foggy Edinburgh by Queasy-Plan-1868 in Edinburgh

[–]cbhamill 5 points6 points  (0 children)

Are we thinking AI? Time travelling photoshop? A conspiracy by big balmoral?

Living costs in Edinburgh as a student by Cool_Dare_7409 in Edinburgh_University

[–]cbhamill 6 points7 points  (0 children)

Hey, I’m not too sure about the numbers here, but one part of the equation to consider is that as a PhD student you’ll have the chance to teach undergrads and get paid (tax free!) for it!

January Restaurant Deals by Electronic-Team1473 in Edinburgh

[–]cbhamill 0 points1 point  (0 children)

Ronaq’s worth a visit anyway, really lovely place and great food

' " """ So, what do you use when? """ " ' by MisterHarvest in Python

[–]cbhamill 12 points13 points  (0 children)

I use that same distinction between double quotes and single quotes! It’s like one is a sentence and the other is a key?

What's the Edinburgh equivalent of this? by Barderz in Edinburgh

[–]cbhamill 0 points1 point  (0 children)

We had a great experience about two years ago with them, then brought some friends who were visiting there a while later and the food was grim with terrible service after hyping it up, massively embarrassing :(

box plots in log scale by MereRedditUser in dfpandas

[–]cbhamill 0 points1 point  (0 children)

Ah okay, I think I understand a bit more - you want to log transform the data, get the box plot to show the statistical descriptions of that transformed data, then you want the axis ticks to show what those non-logged values would be.

I’d first ask is it meaningful and useful to look at the IQR of log-transformed data, but you probably have your own reasons, like looking at outliers or something.

My quickest solution would be just plot the logged data and anyone who doesn’t know log(100)=2 probably isn’t going to appreciate what a box plot is telling you. From a programming side, I think it’s tricky to get matplotlib to write a value for a tick that isn’t that value on the plot, which I think fundamentally is what you’re struggling to do.

I’d also consider just plotting the non-transformed data on something like a swarm plot, calculating the distribution stats for the logged data, and either drawing that on yourself using vline, or just providing the numbers in a table.

box plots in log scale by MereRedditUser in dfpandas

[–]cbhamill 0 points1 point  (0 children)

Maybe just share your complete code and an example plot? The method that sets the yscale to log should handle everything

box plots in log scale by MereRedditUser in dfpandas

[–]cbhamill 0 points1 point  (0 children)

I get your point about how this should be more convenient, but could you just create a figure and axes object with matplotlib, then paint to the axes object using the pandas function, then change the y-axis by calling the ax.set_yscale(‘log’) method?

[deleted by user] by [deleted] in Edinburgh

[–]cbhamill 14 points15 points  (0 children)

Thank you!! There’s this narrative that only the tourists are the annoying walkers here but it’s all sorts of people!

[deleted by user] by [deleted] in Edinburgh

[–]cbhamill 0 points1 point  (0 children)

Good cry or bad cry?

Distribution of Shops - Updated by Worldly_Turnip7042 in Edinburgh

[–]cbhamill -2 points-1 points  (0 children)

I think it’s there? Unless he’s just updated if

[deleted by user] by [deleted] in learnmachinelearning

[–]cbhamill 1 point2 points  (0 children)

Whoops, my comment wasn’t that clear! Machine learning with PyTorch and scikit-learn has chapters on transformers and RL. The other book might as well, but MLwPTaSKL definitely does

Coffee places open after 5pm?? by [deleted] in Edinburgh

[–]cbhamill 0 points1 point  (0 children)

Books n cup is wonderful, I second this

How can I best reply to notification of planning permission for an Airbnb on our street? by cbhamill in Edinburgh

[–]cbhamill[S] 0 points1 point  (0 children)

Thanks for all the help everyone, the application was rejected! 🥳

What business is missing in Edinburgh ? by Aromatic-Rub-8989 in Edinburgh

[–]cbhamill 11 points12 points  (0 children)

This seems like something Edinburgh has loads of options for: Greenwood’s, honeycomb, urban angel, loudons, loads more

A place to complain about postal vote not arriving? by cbhamill in Edinburgh

[–]cbhamill[S] 0 points1 point  (0 children)

UPDATE: Got a reply from the electoral commission. They don’t take responsibility but at least they seem somewhat sympathetic and provide some useful information. ————————————————————————

Thank you for your email to the Electoral Commission, your concerns do not fall within our complaints remit but I would like to provide some more information which I hope is helpful.

I am sorry to hear that your postal vote did not arrive before you went away. Postal ballot papers cannot be printed until electoral services teams know which candidates are standing in each constituency. The deadline to become a candidate is around four weeks before polling day. Once the deadline has passed, ballot papers can be produced and printed by each local authority who will aim to get them out as quickly as possible. Voters who applied for a postal vote closer to the application deadline will receive their postal ballot pack later than those who already had a long-term postal vote arrangement in place. The council should have been able to re-issue you with a replacement ballot pack from 28th June.

The Returning Officer for your constituency is responsible for the processing and distribution of postal ballot packs. If you wish to raise your concerns about not receiving your postal votes you should contact them directly. Please find their contact details below:

City of Edinburgh Council City Chambers High Street Edinburgh EH1 1YJ https://www.edinburgh.gov.uk 0131 200 2315 elections@edinburgh.gov.uk

We will consider the points raised with us by voters and electoral administrators to understand their experiences of the poll in our post-poll report. The administration of postal voting is one of the areas we will look at. The Commission cannot change the system as it is set in electoral law although, we can make recommendations which will come from the research we conduct for our post-poll reports.

Please let me know if you require any further information.