[New-bugs-announce] [issue40437] add string.snake function

jeffolsi10 report at bugs.python.org
Wed Apr 29 08:48:52 EDT 2020


New submission from jeffolsi10 <yirage2897 at coalamails.com>:

Like we have:
capitalize
swapcase
and others we should also have snake case

Which converts:
before: First Name, Last Name, Employee Status, Subject
after: first_name, last_name, employee_status, subject

This is very useful when working with titles of columns that are to be used in databases columns
usage example
https://github.com/pandas-dev/pandas/issues/33826

----------
messages: 367643
nosy: jeffolsi10
priority: normal
severity: normal
status: open
title: add string.snake function
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40437>
_______________________________________


More information about the New-bugs-announce mailing list