code stringlengths 3 6.57k |
|---|
collections.defaultdict(dict) |
_read(self) |
self._io.pos() |
self._io.read_bytes(4) |
decode(u"UTF-8") |
self._io.pos() |
self._io.pos() |
self._io.read_bytes(9) |
decode(u"UTF-8") |
self._io.pos() |
LengthTextInfo(KaitaiStruct) |
__init__(self, _io, _parent=None, _root=None) |
collections.defaultdict(dict) |
_read(self) |
self._io.pos() |
self._io.read_bytes(4) |
decode(u"UTF-8") |
self._io.pos() |
self._io.pos() |
self._io.read_bytes(5) |
decode(u"UTF-8") |
self._io.pos() |
is_valid_minnesota_zip(zip: str) |
zipcodes.filter_by(state="MN") |
len(zip) |
type(zip) |
ColumnValuesToBeValidMinnesotaZip(ColumnMapMetricProvider) |
column_condition_partial(engine=PandasExecutionEngine) |
_pandas(cls, column, **kwargs) |
column.apply(lambda x: is_valid_minnesota_zip(x) |
column_condition_partial(engine=SqlAlchemyExecutionEngine) |
_sqlalchemy(cls, column, _dialect, **kwargs) |
column_condition_partial(engine=SparkDFExecutionEngine) |
_spark(cls, column, **kwargs) |
ExpectColumnValuesToBeValidMinnesotaZip(ColumnMapExpectation) |
configuration (OPTIONAL[ExpectationConfiguration]) |
super() |
validate_configuration(configuration) |
InvalidExpectationConfigurationError(str(e) |
ExpectColumnValuesToBeValidMinnesotaZip() |
print_diagnostic_checklist() |
or (3, 0) |
install_requires.append('argparse') |
find_packages() |
Blueprint('core', __name__) |
core.route('/login', methods=['POST']) |
login() |
data.get('username') |
data.get('password') |
core_login(username, password) |
core.route('/book_borrow_info', methods=['GET']) |
book_borrow_info() |
request.args.get('token') |
get_book_borrow_info(token) |
core.route('/trans_list', methods=['GET']) |
trans_list() |
request.args.get('token') |
get_trans_list(token) |
core.route('/tel_book', methods=['GET']) |
tel_book() |
request.args.get('department_id') |
get_tel_book(department_id) |
or (at your option) |
map(lambda x: x.__name__, pygal.CHARTS) |
form (title val1 val2...) |
list(pygal.interpolate.INTERPOLATIONS.keys() |
parser.parse_args() |
getattr(pygal, config.type) |
vars(config) |
chart.add(serie[0], map(float, serie[1:]) |
chart.render_to_file(config.filename) |
uiCombobox(ctypes.Structure) |
uiComboboxPointer(obj) |
ctypes.cast(obj, ctypes.POINTER(uiCombobox) |
uiComboboxAppend(uiCombobox *c, const char *text) |
uiComboboxAppend(combobox, text) |
clibui.uiComboboxAppend(combobox, bytes(text, 'utf-8') |
uiComboboxSelected(uiCombobox *c) |
uiComboboxSelected(combobox) |
clibui.uiComboboxSelected(combobox) |
uiComboboxSetSelected(uiCombobox *c, int n) |
uiComboboxSetSelected(combobox, n) |
clibui.uiComboboxSetSelected(combobox, n) |
uiComboboxOnSelected(uiCombobox *c, void (*f) |
uiComboboxOnSelected(combobox, callback, data) |
ctypes.POINTER(uiCombobox) |
c_type(callback) |
clibui.uiComboboxOnSelected(combobox, c_callback, data) |
uiNewCombobox() |
ctypes.POINTER(uiCombobox) |
clibui.uiNewCombobox() |
click.command() |
click.option('--input_path', type=click.STRING, help='Path to input file') |
click.option('--output_path', type=click.STRING, help='Path to input file') |
click.option('--set_', type=click.Choice(['train', 'test']) |
preprocess(input_path, output_path, set_) |
pd.read_csv(input_path, sep='|') |
pd.read_csv(input_path) |
apply(lambda x: preprocess_f(x) |
df.to_csv(output_path, index=False) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.