New submission from jeffolsi10 <yirage2...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40437>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to