MCPcopy Create free account
hub / github.com/datacamp/pythonwhat / getColumnsInProcess

Function getColumnsInProcess

pythonwhat/tasks.py:82–83  ·  view source on GitHub ↗
(name, process, shell)

Source from the content-addressed store, hash-verified

80# Get the columns of a Pandas data frame in the process
81@process_task
82def getColumnsInProcess(name, process, shell):
83 return list(get_env(shell.user_ns)[name].columns)
84
85
86# Is a key defined in a collection in the process?

Callers 1

test_data_frameFunction · 0.90

Calls 1

get_envFunction · 0.85

Tested by 1

test_data_frameFunction · 0.72