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

本站现有博文337篇,共被浏览961549次

本站已经建立2673天!

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