摘要: # 代码12-1 评论去重的代码 import pandas as pdimport reimport jieba.posseg as psgimport numpy as np # 去重,去除完全重复的数据reviews = pd.read_csv(r"D:\课程资料\大数据分析\分词\data\ 阅读全文
posted @ 2023-04-08 12:16 周楚y 阅读(277) 评论(0) 推荐(0)
摘要: # 代码11-1 import osimport pandas as pd # 修改工作路径到指定文件夹os.chdir(r"D:\课程资料\大数据分析\第十一章") # 第一种连接方式#from sqlalchemy import create_engine #engine = create_en 阅读全文
posted @ 2023-03-31 00:04 周楚y 阅读(95) 评论(0) 推荐(0)
摘要: import pandas as pdimport matplotlib.pyplot as plt inputfile=r"C:\Users\ying\Desktop\original_data.xls"data=pd.read_excel(inputfile) #查看有无水流的分布#数据提取lv 阅读全文
posted @ 2023-03-26 22:32 周楚y 阅读(83) 评论(0) 推荐(0)
摘要: import numpy as npimport pandas as pd inputfile=r"D:\wechat thingd\WeChat Files\k867080698\FileStorage\MsgAttach\89b755a65e2dd93c3e9546794798bf4e\File 阅读全文
posted @ 2023-03-19 21:22 周楚y 阅读(135) 评论(0) 推荐(0)
摘要: import pandas as pddatafile=r"C:\Users\ying\Desktop\air_data.csv"resultfile=r"C:\Users\ying\Desktop\explore.xlsx" data=pd.read_csv(datafile,encoding=' 阅读全文
posted @ 2023-03-12 23:20 周楚y 阅读(99) 评论(0) 推荐(0)
摘要: # 数据处理import pandas as pdimport numpy as np # 绘图import seaborn as snsimport matplotlib.pyplot as plt df = pd.read_csv(r"D:\wechat thingd\WeChat Files\ 阅读全文
posted @ 2023-03-05 13:22 周楚y 阅读(169) 评论(0) 推荐(0)
摘要: import pandas as pddf=pd.read_excel(r"C:\Users\ying\Desktop\catering_sale.xls") print(df.describe()) 销量 count 200.000000 mean 2755.214700 std 751.0297 阅读全文
posted @ 2023-02-25 20:04 周楚y 阅读(292) 评论(0) 推荐(0)
摘要: BP-神经网络在fashion分类上的应用 # -*- coding: utf-8 -*-"""Created on Mon Apr 11 19:07:37 2022 @author: ying""" # TensorFlow and tf.kerasimport tensorflow as tff 阅读全文
posted @ 2022-04-24 22:49 周楚y 阅读(82) 评论(0) 推荐(0)
摘要: numpy方式 """Created on Tue Mar 8 14:40:31 2022 @author: ying""" import mathimport numpy as npimport pandas as pdfrom pandas import DataFrame fp =open(" 阅读全文
posted @ 2022-03-19 16:39 周楚y 阅读(190) 评论(0) 推荐(0)
摘要: import tkinter as tkimport tkinter.messagebox as messagebox root = tk.Tk()root.title("信息录入")root.geometry('300x300') input1 = tk.Label(root, text="输入姓 阅读全文
posted @ 2021-12-12 11:35 周楚y 阅读(98) 评论(0) 推荐(0)