pandas with day

机试题目-day2

1.回文串问题 把字符串中的大写都改为小写,并且把不是字母的字符删掉组成新的字符串 原思路:都在原地址进行操作,此时会有各种问题 现思路:组成一个新的字符串,用数组进行存储。问题又来了,如何知道新数组的长度呢?在编译的时候,无法你传进来的大小,因此要使用malloc申请内存。 bool isPali ......
题目 day2 day

Django11days

Cookie和session发展史 cookie补充 django操作 cookie session django操作session三种方法 ——————————————————————————————————————————————————————————————————————————————— ......
Django days 11

团队作业4.3——Scrum Day 3(11/22/2023)

团队成员 学号 博客园主页 GitHub 徐宗韬(组长) 3121004802 yuLLin yulinnn 冯浩天 3121004779 FHTgduthomework FHTHomeworkAtgdut 朱正东 3121004806 Momota momotaaa 黄皓坤 3121004783 ......
团队 Scrum 2023 4.3 Day

Java - day5

五 面向对象 类与对象 5.5类与对象小结 用()调用刚发 5.6 封装 public class Student { //属性私有 private String name;//名字 private int id;//学号 private char sex;//性别 private int age; ......
Java day5 day

day06 数据类型(下)

​ 常见的数据类型: dict,字典类型 set,集合类型 float,浮点类型(浮点型) 目标:掌握字典、集合、浮点类型相关知识。 课程概要: set集合,一个不允许重复重复 & 可变类型(元素可哈希)。 dict字典,一个容器且元素必须是键值对。 float类型,我们生活中常见的小数。 1.集合 ......
类型 数据 day 06

Python在使用pandas时内存使用过大导致服务器宕机,有哪些优化方法?

当使用pandas处理大规模数据时,内存使用量可能会迅速增加,导致服务器宕机。为了解决这个问题,可以采用以下几个优化方法: 数据类型优化: 使用更小的数据类型,例如将int64转换为int32或int16,节省内存空间。 对于字符串类型,尽量使用'category'类型,它会使用更少的内存。 分块处 ......
内存 服务器 方法 Python pandas

Scrum冲刺博客-day2

这个作业属于哪个课程 https://edu.cnblogs.com/campus/gdgy/CSGrade21-12 这个作业要求在哪里 https://edu.cnblogs.com/campus/gdgy/CSGrade21-12/homework/13020 这个作业的目标 Scrum冲刺博 ......
Scrum 博客 day2 day

day - 1

Python学习一 Chap 1 启航 注释 分类: 单行注释,使用 # 开头;(只能写在一行中) 多行注释,使用‘ ’‘’ ‘’‘ 或 “”“ ”“” 包裹起来(单引号 (') 与双引号 ("") 在python中没有太大区别); 作用: 注释主要是用于对代码进行解释和说明,可以提升代码的可读性 ......
day

团队作业4.2——Scrum Day 2(11/21/2023)

团队成员 学号 博客园主页 GitHub 徐宗韬(组长) 3121004802 yuLLin yulinnn 冯浩天 3121004779 FHTgduthomework FHTHomeworkAtgdut 朱正东 3121004806 Momota momotaaa 黄皓坤 3121004783 ......
团队 Scrum 2023 4.2 Day

【Python】pandas 读取 后向轨迹文件

import pandas as pd from pathlib import Path def backwardtrace(file: str): if not Path(file).is_file(): raise ValueError('File does not exist!') else: ......
轨迹 文件 Python pandas

pandas inplace

当你使用 inplace=True 时,操作将直接在原始对象上进行,而不返回一个新的对象。当 inplace=False 或未指定时,通常会返回一个修改后的新对象,而原始对象保持不变 ......
inplace pandas

Excel读取和写入,pandas

读取 写入: df.to_excel('data.xlsx', index=False) # index 就是在增加一列,作为索引。目前没啥作用,用不到 numpy是不是也能写入 不能 ......
pandas Excel

Java -day4

4.7稀疏数组 public static void main(String[] args) { int[][] array1 = new int[11][11]; array1[1][2] = 1; array1[2][3] = 2; System.out.println("原始数组"); for ......
Java day4 day

[948] Extract PDF tables that have cells with multiple lines

If your PDF tables have cells with multiple lines, and you want to merge those lines within the same cell when extracting the table, you might need a ......
multiple Extract tables cells lines

[947] Batch rename columns in a Pandas DataFrame

To batch rename columns in a Pandas DataFrame, we can use the rename method. Here is an example: import pandas as pd # Sample DataFrame data = {"ID": ......
DataFrame columns rename Pandas Batch

[946] Add a new row to a Pandas DataFrame

To add a new row to a Pandas DataFrame, we can use the append method or the loc indexer. Here are examples of both methods: Using append method: impor ......
DataFrame Pandas 946 Add new

Applying sewage charging system to deal with water pollution problem in Russia.

What is the sewage charging system? Although manufacturing has always been a key driving force for China's economic growth, it is also the root cause  ......
pollution Applying charging problem sewage

Scrum冲刺博客-day1

这个作业属于哪个课程 https://edu.cnblogs.com/campus/gdgy/CSGrade21-12 这个作业要求在哪里 https://edu.cnblogs.com/campus/gdgy/CSGrade21-12/homework/13020 这个作业的目标 Scrum冲刺博 ......
Scrum 博客 day1 day

day132--springboot web场景-静态资源规则与定制化

springboot web场景-静态资源规则与定制化 静态资源目录 只要静态资源放在类路径下: called /static (or /public or /resources or /META-INF/resources 访问 : 当前项目根路径/ + 静态资源名 原理: 静态映射/**。 当请 ......
静态 springboot 场景 规则 资源

day131- springboot 的配置文件yaml的用法

springboot 的配置文件yaml的用法 yaml文件同properties文件一样,适合用来做数据为中心的配置文件 基本语法 key: value;kv之间有空格 大小写敏感 使用缩进表示层级关系 缩进不允许使用tab,只允许空格 缩进的空格数不重要,只要相同层级的元素左对齐即可 '#'表示 ......
springboot 文件 yaml day 131

day01预习-基本语法

typora-copy-images-to: media 基本语法 JavaScript的历史: ​ 在95年以前,就有很多上网的用户了,当时的带宽只有28.8kb/s,用户要进行表单的验证时,点击提交按钮,直接就将数据发送到服务器了,受限于带宽的关系,浏览器和服务器的通信很慢,大概一次通信需要30 ......
语法 day 01

day01 容器化的几种架构方式-pod创建过程原理-Scheduler的多种调度策略总结 (1.1-1.3.2 )

一、容器化的几种架构方式 1.、容器的由来及变迁史 Docker->Docker-compose ->Docer swarm ->Kubernetes 2、微服务容器化的几种解决方案 特性 Docker Swarm Kubernetes 安装和集群配置 安装简单,集群不强大 但在很复杂,集群非常强大 ......
容器 架构 Scheduler 多种 原理

pandas索引切片

行 列 ......
索引 pandas

Running DPDK Forwarding Applications With Pktgen-DPDK

As part of the evaluation stage of our bachelor thesis, we set up a testbed for running forwarding applications in DPDK and with Pktgen-DPDK as the tr ......

Solving 0/1 knapsack problem with dynamic programming (英语课汇报)

Solving 0/1 knapsack problem with dynamic programming Introduction 0/1 knapsack problems A long time ago, an explorer went to an island where there we ......

[945] Replacing a string in all cells of a Pandas DataFrame

To replace a string in all cells of a Pandas DataFrame, we can use the str.replace() method, which allows us to perform string replacements on each el ......
Replacing DataFrame Pandas string cells

【略读论文|时序知识图谱补全】Temporal Knowledge Graph Reasoning with Historical Contrastive Learning

会议:AAAI,时间:2023,学校:上海交通大学 摘要: 大多数时序知识图谱的推理方法高度依赖于事件的递归或周期性,这给推断与缺乏历史交互的实体相关的未来事件带来了挑战。本文提出一种新的基于历史对比学习训练框架的对比事件网络(CENET)的新事件预测模型。 1.CENET 学习历史和非历史依赖来区 ......

Java -day3

四 方法 4.4命令行传递参数 main方法也可以传递参数 通过cmd 命令提示符运行 先编译 注意包的位置(回退) public class Demo03 { public static void main(String[] args) { for (int i = 0; i < args.len ......
Java day3 day

团队作业4.1——Scrum Day 1(20/11/2023)

团队成员 学号 博客园主页 GitHub 徐宗韬(组长) 3121004802 yuLLin yulinnn 冯浩天 3121004779 FHTgduthomework FHTHomeworkAtgdut 朱正东 3121004806 Momota momotaaa 黄皓坤 3121004783 ......
团队 Scrum 2023 4.1 Day

Python pandas 自动自动调整列宽 和加边框

注意openpyxl-3.0.10版本 代码 import numpy as np import pandas as pd from openpyxl.styles import Border, Side from openpyxl.utils import get_column_letter im ......
边框 Python pandas