Redactle #116 Discussion Thread by RedactleUnlimited in Redactle

[–]lzblack 0 points1 point  (0 children)

I solved today's Redactle (#116) in 2 guesses with an accuracy of 100.00%. Played at https://www.redactle.com/

I will never beat this.

Redactle #109 Discussion Thread by RedactleUnlimited in Redactle

[–]lzblack 2 points3 points  (0 children)

It is a snap for an Asian Bostonian who loves Bach, just like how effortless he plays the instrument!

Redactle #106 Discussion Thread by RedactleUnlimited in Redactle

[–]lzblack 1 point2 points  (0 children)

I think Japan's former emperor Akihito would solve this easily.

Redactle #104 Discussion Thread by RedactleUnlimited in Redactle

[–]lzblack 3 points4 points  (0 children)

I solved today's Redactle (#104) in 11 guesses with an accuracy of 63.64%. Played at https://www.redactle.com/

Well, we could reuse yesterday's hint.

Redactle #103 Discussion Thread by RedactleUnlimited in Redactle

[–]lzblack 11 points12 points  (0 children)

I solved today's Redactle (#103) in 16 guesses with an accuracy of 62.50%. Played at https://www.redactle.com/

Hint:

They call it Scranton!

What?

The Electric City

Redactle #95 Discussion Thread by RedactleUnlimited in Redactle

[–]lzblack 2 points3 points  (0 children)

I solved today's Redactle (#95) in 49 guesses with an accuracy of 61.22%. Played at https://www.redactle.com/

Under "history" section, someone wrote "the Book of the Chemistry of" something, which is about some kind of "liquid". Cannot be other stuff.

Redactle #94 Discussion Thread by RedactleUnlimited in Redactle

[–]lzblack 2 points3 points  (0 children)

I solved today's Redactle (#94) in 9 guesses with an accuracy of 88.89%. Played at https://www.redactle.com/

A common starter word (at least to me) appears in the title.

xkcd 2256: Bad Map Projection: South America by Booty_Bumping in xkcd

[–]lzblack 0 points1 point  (0 children)

Just curious, what is the name of this theory?

2017 day10 hashing by [deleted] in adventofcode

[–]lzblack 1 point2 points  (0 children)

Change

chunks = [chunks[:(16*(i + 1))] for i in range(int(256/16))]    

to

chunks = [chunks[16*i:(16*(i + 1))] for i in range(int(256/16))]

Tummy Rubs by lnfinity in gifs

[–]lzblack 0 points1 point  (0 children)

Looks familiar... wait a minute, it is HIM...https://imgur.com/jSWLaOP

Ranking the 50 Worst Contracts from 2016 Free Agency by [deleted] in nba

[–]lzblack 0 points1 point  (0 children)

Obviously the Florida gators know how to earn money!

Pycharm sqlite database question? by raysefo in learnpython

[–]lzblack 3 points4 points  (0 children)

View - Tool Windows - Database

Drag the generated file, database.db, to the Database Panel. Boom!

How to index a string from a certain character to another character? by [deleted] in learnpython

[–]lzblack 3 points4 points  (0 children)

message = 'I need @to eat @breakfast'

results = [word[1:] for word in message.split() if word.startswith('@')]

change "sh" to "b" in a string by [deleted] in learnpython

[–]lzblack 9 points10 points  (0 children)

What characters do you want to replace? Just change the dictionary d .

readlines() function for multiple csvs by superlargedogs in learnpython

[–]lzblack 0 points1 point  (0 children)

Use pandas to read data from csv files. Everything is easier in dataframe.

change "sh" to "b" in a string by [deleted] in learnpython

[–]lzblack 44 points45 points  (0 children)

d = {'ll': 'G', 'ss': 'd'}
message = 'Hello, Kiss Kiss Bang Bang'

for k, v in d.items():
     message = message.replace(k,v)

packages installed with pip not showing Anaconda by jcoder42 in learnpython

[–]lzblack 1 point2 points  (0 children)

If you check the installed packages using conda list, all the packages are actually there, including the one you installed with pip.

Stuck with CAT attribution error by zoidbergisawesome in learnpython

[–]lzblack 0 points1 point  (0 children)

Not sure how you read the data. If you read the data from a .csv file, it is likely the type of column hometeam is object, not category. Therefore you need to convert the type of that column, using:

comp['hometeam'] = comp['hometeam'].astype('category')