EADST

Pandas Dataframe Sum the Filtering Data

Pandas Dataframe Sum the Filtering Data 数据筛选后求和

# sum the index profit in May
df1 = data_frame[(data_frame['month'] == 5)]['profit'].sum()

# sum the index profit from May to July
df2 = data_frame[(data_frame['month']>=5) & (data_frame['month']<8)]['profit'].sum()

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
CC NLP diffusers 算法题 DeepStream PIP LLAMA LLM uwsgi Diagram 飞书 CAM TensorFlow Qwen2.5 Image2Text 签证 PyCharm 净利润 Algorithm Miniforge Mixtral WAN Bert uWSGI Plotly Breakpoint Excel torchinfo 关于博主 HaggingFace Search FP8 News SAM Datetime Permission Clash CLAP 多线程 Crawler Agent MD5 C++ XGBoost 报税 Qwen Llama AI Augmentation Windows Django Claude ONNX FlashAttention Google InvalidArgumentError FP64 Website SQLite HuggingFace 公式 WebCrawler CSV NameSilo 版权 LoRA Paddle Animate Quantize PyTorch Domain 财报 搞笑 Web Paper BTC Markdown Freesound Nginx TTS Data QWEN VSCode UNIX CV 递归学习法 Video v2ray Anaconda TensorRT Git CUDA 强化学习 mmap Sklearn TSV GGML 腾讯云 Safetensors Bin Baidu Logo Tracking CTC Magnet Hotel NLTK Transformers LeetCode Password transformers SPIE GoogLeNet 阿里云 域名 ChatGPT Distillation VPN git Vmess Heatmap Streamlit DeepSeek v0.dev 第一性原理 GPT4 RAR SQL 继承 Numpy Color Use EXCEL Jetson Cloudreve PDB Tiktoken printf Attention Firewall Conda API Hilton Michelin Disk ResNet-50 Ubuntu Hungarian 多进程 XML Template COCO Vim hf 云服务器 OpenAI Math Base64 Tensor Github FP32 BeautifulSoup Knowledge Docker GIT PDF 图形思考法 Pickle 音频 SVR Zip Interview Ptyhon Pandas Random ModelScope tar Input Proxy Pytorch OpenCV 顶会 llama.cpp Card BF16 git-lfs VGG-16 Quantization Plate Translation FP16 UI Pillow scipy Shortcut GPTQ Dataset Linux RGB FastAPI CEIR JSON Statistics IndexTTS2 YOLO 证件照 LaTeX Jupyter logger OCR tqdm Land Python Qwen2 Food Bipartite Gemma Bitcoin Review
站点统计

本站现有博文321篇,共被浏览782506

本站已经建立2475天!

热门文章
文章归档
回到顶部