原创 python 清理串行數據 1.替換 2.查看是否有串行

1.替換 思路: 把雙引號【"】替換爲橫線【-】 把雙豎線【||】替換爲單個雙引號【"】 #替換 import re from tqdm import tqdm #清洗數據 def file_sub(old_file,new_

原创 -bash: sqlplus: command not found

https://blog.csdn.net/Ruishine/article/details/120128565?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.

原创 視覺對象visuals下載(PBIVIZ文件)

https://appsource.microsoft.com/en-us/marketplace/apps?page=1&src=office&product=power-bi-visuals

原创 python txt csv文件同時含有多種編碼清洗

# -*- coding: utf-8 -*- """ Created on Wed Feb 23 11:25:05 2022 @author: mw """ from tqdm import tqdm #源文件,清洗後的文件 fi

原创 python txt csv 文件串行串列處理 一、發現串行串列數據 二、替換串列數據

一、發現串行串列數據 1.1 根據分隔符每行出現次數判斷是否串列 根據分隔符出現的次數判斷是否串列 #發現串行 with open(file,'r',encoding='utf-8') as file: rows = file.re

原创 VBA實例06:xls批量轉xlsx

'訪問當前文件夾下所有子文件夾及文件, Dim iFile(1 To 100000) As String Dim count As Integer Sub xls2xlsx() iPath = ThisWorkbook.Path

原创 VBA實例05:建立excel與word的映射關係 一、需求 二、實現原理 三、代碼實現 四、代碼演示 五

一、需求 在利用word編寫各種論文、報告以及招股書時,往往會需要插入一堆表格數據。由於數據更新頻繁,每次更新報告,粘數就會讓人非常疲憊。 因此如果能將excel裏的數據映射到word文檔中,每次數據更新時,word報告裏的數據也可以同步更

原创 Python pip安裝命令

更新pip python -m pip install --upgrade pip 使用清華源 pip install pymysql -i https://pypi.tuna.tsinghua.edu.cn/simple/ 使用豆瓣源

原创 VBA番外篇02:vba如何debug 需求 具體操作

需求 在執行VBA時,代碼會出現一些bug,找原因的時候就比較麻煩,編輯器自帶的調試功能就可以很方便的幫助我們定位到問題所在 具體操作 1.運行代碼 – F5 此功能雖然不在調試菜單裏,但是它是最常用的調試方法。很多時候,我們只需要快速運

原创 Python Json轉置爲excel

# -*- coding: utf-8 -*- """ Created on Thu Nov 18 21:46:56 2021 @author: michaelxwang """ import json from pandas impo

原创 Sqlserver Master 數據庫從C盤遷移 背景 操作

背景 由於數據庫默認安裝在C盤,master數據庫也默認建立在C盤,佔了不少系統盤空間。因此想要給轉移到E盤 操作 配置管理器默認路徑:C:\Windows\System32\SQLServerManager10.msc 打開Sql Se

原创 mysql常用腳本 查看當前進程 查看資源池

查看當前進程 select * from information_schema.innodb_trx; 查看資源池 show variables like 'innodb_buffer_pool%'

原创 Python合併多個EXCEL表爲一個csv文件

# -*- coding: utf-8 -*- """ Created on Fri Oct 9 20:59:55 2020 @author: mw """ import os dirpath = './' import panda

原创 Excel 分類累計總和公式 需求: 具體公式:

需求: 分項目計算每項的累計金額(Cumulative)如下圖 具體公式: E3=SUMIF($B$3:B3,B3,$D$3:D3)

原创 SQLserver LEAD和LAG函數

--測試數據 if not object_id(N'Tempdb..#T') is null drop table #T Go Create table #T([Id] varchar(10),[Value] int ) Inse