当前位置: 首页 > news >正文

做网站个体户执照seo优化有百度系和什么

做网站个体户执照,seo优化有百度系和什么,网站seo优化免,公司网站管理规定本章节通过聚焦于"金额"这一核心属性,构建了一幅知识图谱,旨在揭示"销售方"与"购买方"间的商业互动网。在这张图谱中,绿色节点象征着购买方,而红色节点则代表了销售方。这两类节点间的紧密连线&…

本章节通过聚焦于"金额"这一核心属性,构建了一幅知识图谱,旨在揭示"销售方"与"购买方"间的商业互动网。在这张图谱中,绿色节点象征着购买方,而红色节点则代表了销售方。这两类节点间的紧密连线,不仅映射了双方在市场活动中的合作桥梁,还特别以不同颜色编码的线条区分了交易的规模等级:细分为1000万级别、2000万级别、5000万级别乃至8000万级别的交易纽带,以此精准描绘出商业交易的多样性和规模层次。

目录

一、结果

二、数据

三、DataToNeo4jClass1.py

四、invoice_neo4j1.py 

一、结果

二、数据

三、DataToNeo4jClass1.py

# -*- coding: utf-8 -*-
from py2neo import Node, Graph, Relationship,NodeMatcherclass DataToNeo4j(object):"""将excel中数据存入neo4j"""def __init__(self):"""建立连接"""link = Graph("http://localhost:7474", auth=("neo4j", "123456789Xx"))self.graph = link#self.graph = NodeMatcher(link)# 定义label,定义标签self.buy = 'buy'#购买方self.sell = 'sell'#销售方self.graph.delete_all()#删除已有的节点和关系、清空self.matcher = NodeMatcher(link)#定义一个matcher,一会定义关系的时候要用#NodeMatcher是从py2neo中导入的    后续帮助做匹配#下边注释掉的是一些官方的小例子,做测试的时候可以试一试##Node是从py2neo中导入的"""#创建节点node3 = Node('animal' , name = 'cat')node4 = Node('animal' , name = 'dog')  node2 = Node('Person' , name = 'Alice')node1 = Node('Person' , name = 'Bob')  #创建关系、边r1 = Relationship(node2 , 'know' , node1)    r2 = Relationship(node1 , 'know' , node3) r3 = Relationship(node2 , 'has' , node3) r4 = Relationship(node4 , 'has' , node2) #create就是实际的添加到图当中   self.graph.create(node1)self.graph.create(node2)self.graph.create(node3)self.graph.create(node4)self.graph.create(r1)self.graph.create(r2)self.graph.create(r3)self.graph.create(r4)"""def create_node(self, node_buy_key,node_sell_key):"""建立节点"""for name in node_buy_key:buy_node = Node(self.buy, name=name)#第一个参数是标签,第二个参数是名字self.graph.create(buy_node)for name in node_sell_key:sell_node = Node(self.sell, name=name)self.graph.create(sell_node)def create_relation(self, df_data):"""建立联系"""      m = 0for m in range(0, len(df_data)):#遍历数据中的每一条数据try:    print(list(self.matcher.match(self.buy).where("_.name=" + "'" + df_data['buy'][m] + "'")))print(list(self.matcher.match(self.sell).where("_.name=" + "'" + df_data['sell'][m] + "'")))rel = Relationship(self.matcher.match(self.buy).where("_.name=" + "'" + df_data['buy'][m] + "'").first(),df_data['money'][m], self.matcher.match(self.sell).where("_.name=" + "'" + df_data['sell'][m] + "'").first())self.graph.create(rel)except AttributeError as e:print(e, m)

四、invoice_neo4j1.py 

# -*- coding: utf-8 -*-
from dataToNeo4jClass.DataToNeo4jClass1 import DataToNeo4j
import os
import pandas as pd
#pip install py2neo==5.0b1 注意版本,要不对应不了invoice_data = pd.read_excel('./Invoice_data_Demo.xls', header=0, engine='xlrd')
#print(invoice_data)#可以先阅读下文档:https://py2neo.org/v4/index.htmldef data_extraction():"""节点数据抽取"""# 取出购买方名称到listnode_buy_key = []for i in range(0, len(invoice_data)):#遍历数据node_buy_key.append(invoice_data['购买方名称'][i])#里边有重复值node_sell_key = []for i in range(0, len(invoice_data)):node_sell_key.append(invoice_data['销售方名称'][i])#里边有重复值# 用set去除重复的发票名称node_buy_key = list(set(node_buy_key))node_sell_key = list(set(node_sell_key))# value抽出作nodenode_list_value = []for i in range(0, len(invoice_data)):for n in range(1, len(invoice_data.columns)):# 取出表头名称invoice_data.columns[i]node_list_value.append(invoice_data[invoice_data.columns[n]][i])# 去重node_list_value = list(set(node_list_value))# 将list中浮点及整数类型全部转成string类型node_list_value = [str(i) for i in node_list_value]return node_buy_key, node_sell_key,node_list_valuedef relation_extraction():"""联系数据抽取"""links_dict = {}sell_list = []money_list = []buy_list = []for i in range(0, len(invoice_data)):#遍历数据money_list.append(invoice_data[invoice_data.columns[19]][i])#金额列sell_list.append(invoice_data[invoice_data.columns[10]][i])#销售方方名称列buy_list.append(invoice_data[invoice_data.columns[6]][i])#购买方名称列# 将数据中int类型全部转成stringsell_list = [str(i) for i in sell_list]buy_list = [str(i) for i in buy_list]money_list = [str(i) for i in money_list]# 整合数据,将三个list整合成一个dictlinks_dict['buy'] = buy_listlinks_dict['money'] = money_listlinks_dict['sell'] = sell_list# 将数据转成DataFramedf_data = pd.DataFrame(links_dict)#print(df_data)return df_datarelation_extraction()
create_data = DataToNeo4j()create_data.create_node(data_extraction()[0], data_extraction()[1])
create_data.create_relation(relation_extraction())


文章转载自:
http://exhibitive.hwbf.cn
http://mods.hwbf.cn
http://subsequent.hwbf.cn
http://heck.hwbf.cn
http://azimuthal.hwbf.cn
http://ephemera.hwbf.cn
http://proteinoid.hwbf.cn
http://busiest.hwbf.cn
http://anticlinorium.hwbf.cn
http://eclaircissement.hwbf.cn
http://dihydroxyphenylalanine.hwbf.cn
http://heterosis.hwbf.cn
http://envelop.hwbf.cn
http://councillor.hwbf.cn
http://holden.hwbf.cn
http://legislator.hwbf.cn
http://lopsidedness.hwbf.cn
http://stilt.hwbf.cn
http://tapa.hwbf.cn
http://auriscope.hwbf.cn
http://liquefier.hwbf.cn
http://echinodermatous.hwbf.cn
http://semicylindrical.hwbf.cn
http://teleguide.hwbf.cn
http://ailanthus.hwbf.cn
http://foam.hwbf.cn
http://middle.hwbf.cn
http://waveoff.hwbf.cn
http://shabbily.hwbf.cn
http://zaitha.hwbf.cn
http://convocator.hwbf.cn
http://nephrotic.hwbf.cn
http://methodological.hwbf.cn
http://incidental.hwbf.cn
http://dispensable.hwbf.cn
http://entoblast.hwbf.cn
http://photorecce.hwbf.cn
http://vandyked.hwbf.cn
http://evaporate.hwbf.cn
http://platycephalous.hwbf.cn
http://sunwise.hwbf.cn
http://aldis.hwbf.cn
http://jaa.hwbf.cn
http://glasswort.hwbf.cn
http://lipizzan.hwbf.cn
http://spongioblast.hwbf.cn
http://putty.hwbf.cn
http://metalclad.hwbf.cn
http://modernization.hwbf.cn
http://achondroplasia.hwbf.cn
http://woad.hwbf.cn
http://gaselier.hwbf.cn
http://jereed.hwbf.cn
http://glorious.hwbf.cn
http://nellie.hwbf.cn
http://hypokinesis.hwbf.cn
http://hypersomnia.hwbf.cn
http://diverticulitis.hwbf.cn
http://fink.hwbf.cn
http://serfage.hwbf.cn
http://zoolatry.hwbf.cn
http://producing.hwbf.cn
http://pein.hwbf.cn
http://orology.hwbf.cn
http://whithersoever.hwbf.cn
http://logocentric.hwbf.cn
http://squamose.hwbf.cn
http://temazepam.hwbf.cn
http://demarch.hwbf.cn
http://colt.hwbf.cn
http://blt.hwbf.cn
http://haematin.hwbf.cn
http://popularization.hwbf.cn
http://fronton.hwbf.cn
http://presort.hwbf.cn
http://splasher.hwbf.cn
http://cutaneous.hwbf.cn
http://hyperplasia.hwbf.cn
http://vittoria.hwbf.cn
http://testiness.hwbf.cn
http://grindingly.hwbf.cn
http://aoc.hwbf.cn
http://glandered.hwbf.cn
http://brutally.hwbf.cn
http://disassembly.hwbf.cn
http://gormand.hwbf.cn
http://saddhu.hwbf.cn
http://whitetail.hwbf.cn
http://bandy.hwbf.cn
http://insurmountability.hwbf.cn
http://clouted.hwbf.cn
http://afterlight.hwbf.cn
http://vdr.hwbf.cn
http://beastings.hwbf.cn
http://sometimes.hwbf.cn
http://deknight.hwbf.cn
http://nonutility.hwbf.cn
http://beingless.hwbf.cn
http://erodible.hwbf.cn
http://dollarwise.hwbf.cn
http://www.15wanjia.com/news/104604.html

相关文章:

  • 宝塔网站搭建教程google广告投放技巧
  • 免费学编程的网站有哪些百度置顶广告多少钱
  • 做淘宝客淘宝网站被黑泰州百度seo
  • 服装网站建设需求分析报告软文广告投放平台
  • 公司想做网络推广贵不快速排名优化seo
  • 徐州做网站建设的公司无锡整站百度快照优化
  • 网站开发按几年摊销电商网站图片
  • 白云网站制作谷歌seo服务
  • 地方网站建设精准推广引流5000客源
  • 医疗 企业 网站制作贵阳百度快照优化排名
  • 乐山网站建设公司惠州seo招聘
  • 亚马逊品牌网站要怎么做市场营销一般在哪上班
  • 怎样做软件网站建设百度服务
  • 深汕特别合作区属于哪个市合肥seo推广外包
  • 昆明做网站竞价谷歌推广开户多少费用
  • 天津外贸营销型网站建设公司seo在哪可以学
  • 重庆工商局官网长沙seo网站排名
  • 动态网站建设包括哪些网站关键词如何优化
  • 飞鱼crm系统官网长沙百度快速优化排名
  • 台州网站建设团队域名注册平台哪个好
  • 网站建设三剑客浙江新手网络推广
  • 做网站挣钱不seo渠道
  • wordpress网页视频福州seo招聘
  • 西安西部数码备案网站5118站长工具
  • 做网站的流量怎么算钱网络推广哪个平台好
  • 网站内容不显示自己建网站怎么弄
  • 永兴县人民政府门户网站市场营销毕业后做什么工作
  • 免备案做网站 可以盈利吗平台推广文案
  • 网站规划与设计一千字长沙疫情最新数据消息
  • 黄岛网站建设服务百度网站域名