Hot answers tagged

4 votes
Accepted

Breaking Bad name generator

Define a proper constant for the elements. The name data is both vague and improperly formatted for a constant. One option would be something like ...
user avatar
  • 9,475
2 votes
Accepted

Regex and pandas to read forecast sky condition string

At the start of get_sky_condition(), I don't see why you do a .str.strip() when defining ...
user avatar
2 votes
Accepted

Regex pattern matching to generate pandas multi index

indexs should be spelled indices. Your implementation is non-vectorised and should make use of the Pandas ...
user avatar
  • 47.8k
2 votes
Accepted

Text splitter using Regular Expressions in Python

Include spaces after commas. It's a virtually costless habit and it helps with code readability and editability. Constants are typically named with uppercase. Your program begins with several ...
user avatar
  • 9,475
1 vote
Accepted

Newspaper Bill Calculator CLI with Python (1 of 3, Core)

Once you calculate, the results are displayed and copied to your clipboard This is not a good idea for a CLI. It may be a reasonable (opt-in!) option for a GUI, but for a CLI the overwhelming ...
user avatar
  • 47.8k
1 vote

Regex and pandas to read forecast sky condition string

You've landed in trouble with your indices again. I think the shape of your dataframe significantly mischaracterises what your data are actually saying: Per station, per station observation time, per ...
user avatar
  • 47.8k

Only top scored, non community-wiki answers of a minimum length are eligible