前言
年纪一大记性就不好,小许不想总是bing完一些简单基础的代码之后立马就忘了,然后再重复花大量时间去bing,所以想要日常bing之后把用法记录下来,再等有空的时候总结到一起,所以日常记录的代码会比较乱,纯粹用于自己做笔记回忆,请谅解!
一、Python部分
import numpy as np
import pandas as pd
df = pd.read_csv('path/*.txt/*.csv', encoding='uft-8/gbk/gb2312/gb18030',sep='\t'||'\\x7f\\x5e')
df.to_csv('path',encoding='utf-8',index=False)
#取出df中不包含在df1 AA中的数据
df2 = df[~df['AA'].isin(df1['AA'])].reset_index(drop=True)
# 查看缺失数据
df.isnull().sum()
#axis=0表示删除这一行,=1表示删除这一列
df.dropna(axis=0,inplace=True)
df.drop(df.columns[-1],axis=1,inplace=True) #删除最后一列
df.drop(columns='AA',inplace=True) #删除列AA
#拼接dataframe
df = pd.concat[(df1,df2)].reset_index(drop=True)
二、前端React部分
如何改变antd的固定style
添加className='list'
:global {
.list {
.ant-design-balabala {
color: #fff,
fontSize: 14,
...
}
}
}