python-code-generation-for-restricted-open-environment
Generate Python code for CSV file operations in environments where the open() function does not support keyword arguments. Output only the code block without explanations.
Encuentra la capacidad perfecta para tu agente.
Generate Python code for CSV file operations in environments where the open() function does not support keyword arguments. Output only the code block without explanations.
Generates Python code using pandas to batch process CSV files, including deleting columns, converting date formats to Year.Month, enforcing UTF-8 encoding, and adding process completion markers.
Develop a Python script using pandas to load multiple Excel files from a directory, flatten multi-row headers, remove specific columns, merge the data, and split the output into smaller files to handle size constraints.
Creates a Python program with a `factorial` function that calculates the factorial of an integer and returns a string showing the calculation steps (e.g., '4x3x2x1 = 24'). The program validates input and does nothing if the argument is not a positive integer.
Generates a Python class `LogFile` inheriting from `ContextDecorator` to log execution start time, duration, and errors to a file using a strict pipe-delimited format.
Generates a Python script using pandas to iterate through CSV files in a directory, split the first column into multiple columns based on a comma delimiter, and save the result.
Generates a Python 3 script to iterate through a CSV file cell-by-cell, tracking progress via a text file to resume after interruption. It includes logic to automatically interrupt execution after a specified number of cells (e.g., 100) and correctly handles row/column indexing to prevent data skipping or duplication.
Generates Python scripts to write numpy complex matrices to text files using float16 hex format, concatenating real/imaginary parts without separators, and traversing 4x4 blocks in a specific 2x2 sub-block order.
Генерирует bat-скрипт для Windows, который динамически устанавливает последнюю версию Python (пропуская, если она уже есть), устанавливает пакеты из packages.txt, добавляет Python в PATH и запускает main.py в тихом режиме.
Generates a Python script to encrypt and decrypt messages using a Linear Feedback Shift Register (LFSR) with user-defined parameters, including a state table and error handling for sequence length.
Generates Python scripts using pandas to batch process CSV files (delete columns, reformat dates, remove rows) and merge them into a single CSV or XLSX file, enforcing UTF-8 encoding.
Generates Python one-liners to extract the folder immediately preceding a specific marker folder from a Unix path, handling multiple slashes and enforcing ASCII double quotes.
Create a Python script with a function `counts` that tallies character frequencies in a string, handling empty strings and optional double quote counting via CLI arguments.
Converts sequential Python loops iterating over lists into parallelized operations using the pandarallel library, ensuring correct function scoping for FastAPI or standalone scripts.
Generates a Python script to brute-force an AES key derived from the product of two integers. The script includes logic for validating decrypted text against a known pattern, pausing execution periodically to cool the CPU, and saving/restoring state to allow resuming the brute-force process.
Generates or modifies Python scripts (asyncio or requests) to filter BscScan transactions by input data patterns (Method ID, regex, etc.) and extract specific fields like contract addresses or hashes.
Generates a Python script to construct a buffer overflow payload consisting of padding, a return address, a NOP sled, and shellcode, saving the result to a file.
使用Python Pandas对Excel文件中指定列进行分组去重,当目标列值为空(NaN)时不执行去重操作。
使用Python 2.7和PyQt4的QProcess模块,通过执行cmd命令`dir /AL`来获取Windows符号链接或目录连接的源路径。