code v1:
import json
import struct
import base64
import matplotlib.pyplot as plt
from collections import Counter
def read_widd_file(file_path):code v1:
import json
import struct
import base64
import matplotlib.pyplot as plt
from collections import Counter
def read_widd_file(file_path):Let ChatGPT-o1 explain subject matters and complex topics, in an engaging and easily digestible way.
To use the prompt, you can either:
- Save this this in "Custom instructions" part of ChatGPT / Claude,
Or in a new chat:
- Copy the prompt in front, using prompt structure similar to this:
version: '3'
services:
argilla:
image: argilla/argilla-server:latest
ports:
- "6900:6900" # Existing Argilla port
extra_hosts:api_workflow.json:import websocket #NOTE: websocket-client (https://github.com/websocket-client/websocket-client)
import uuid
import json用几种办法来减少dataframe占用的内存:
using functools.partial to pass in real arguments into kedro:
from functools import partial, update_wrapper
from kedro.pipeline import Pipeline, node
from .nodes import process_todo, DemoMerger
def create_wrapped_partial(func, *args, **kwargs):import numpy as np
import matplotlib.pyplot as plt
def plot_quadratic_coefficients(coefficients):
"""
Plots y = ax^2 + bx + c for each set of coefficients within specified x and y ranges.
Parameters:
- coefficients: dict, a dictionary of coefficient sets with 'a', 'b', and 'c' for each key.用来数出df里某列 tag counts数量, 然后可视化的代码:
def safe_split_tag_str(tag_str, separator=","):
"""
Splits a tag string into a list of non-empty, whitespace-stripped tag strings.
"""
if not tag_str:
return [](pixiv-data-process/yada/13_pixiv_streamlined.ipynb)
输入一个(本地或者s3地址), 返回包含了所有文件的列表, 上传图片-meta的关系到s3:
(没那么多数据的时候可以直接这么用:)
# https://github.com/troph-team/build-it/blob/f996fe55a6fd2beda9e62a6624be0f0fe2a05848/buildit/sagemaker/parquet_splitter.py#L13
import os
from dataproc3.sagemaker import ParquetSplitternd setup, works on lambda h100 pcie:
conda:
cd ~/ && mkdir -p miniconda3 && wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.5.2-0-Linux-x86_64.sh -O ./miniconda3/miniconda.sh --no-check-certificate && bash ./miniconda3/miniconda.sh -b -u -p ./miniconda3 && rm ./miniconda3/miniconda.sh && ./miniconda3/bin/conda init bash && source ~/.bashrc && python -m pip install unibox ipykernel jupyter poetry && python -m ipykernel install --user --name=conda310
nd: