Please enable JavaScript.
Coggle requires JavaScript to display documents.
python - Coggle Diagram
python
-
-
-
glob
-
glob.glob(pathname, *, root_dir=None, dir_fd=None, recursive=False, include_hidden=False)
** : recursive path
glob.glob('*/.txt', recursive=True)
-
-
pandas
DataFrame
-
Index
-
loc
loc[[row_list], [column_list]]
loc['row_name_1':'row_name_2, col_name_1:col_name_2
-
Series
Add column name
sr.rename('NewName', inplace=True)
-
class object method
-
__repr__()
returns a string that describes the pointer of the object by default (if the programmer does not define it).
shell command
subprocess
subprocess.run(["powershell", "pwd"], shell=True)
subprocess.Popen('echo "Geeks 4 Geeks"', shell=True)
process = subprocess.Popen(['echo', 'More output'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = process.communicate()
-
-
-
-
-
-
-
-
-