Skip to content

Benjr.tw

  • Linux
    • Stress & Performance
    • Hardware Info
    • System Monitor
    • Security
    • Desktop
    • PXE
    • Filesystem Hierarchy Standard
    • Linux 開機選項
    • Linux Package Manager
    • 備份 Backup
  • Virtualization
    • Docker & Podman
    • CoreOS
  • NAS/SAN
  • Programming Language
    • Python
    • Bash shell script
    • Perl
    • PHP
    • Node.JS
    • VBA
    • javascript
    • Power Query
    • PowerShell
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • SQLite
    • MariaDB JSON

Python – Pandas vs SQL

2023-02-222023-02-23 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 (虛擬機) 有快速可以對比 SQL 語法成 Python Pandas 程式嗎? 發現這一篇 – https://stackoverflow.com/questions/17071871/how-do-i-select-rows-from-a-datafra […]

Read more

Python Pandas – 變更與資料新增/刪除

2023-02-212023-03-09 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 (虛擬機) 參考資料 – https://ithelp.ithome.com.tw/articles/10251664 安裝所需模組 匯入模組 從網路抓的資料大多是 JSON 格式,下面就以此為範例. 使用索引名稱變更值 DataFrame.loc[&#82 […]

Read more

Python Pandas – 常用的資料存取與 iloc, loc 函數

2023-02-202023-03-09 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 (虛擬機) 參考資料 – https://ithelp.ithome.com.tw/articles/10251663 Pandas 二維陣列 (資料類似 Excel 或是 RDBMS 關聯式資料庫) 常用的資料存取與 iloc, loc , ix 函數 安 […]

Read more

Python Pandas – 一維陣列

2023-02-182023-03-09 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 (虛擬機) 參考資料 – https://ithelp.ithome.com.tw/articles/10233655 Pandas 可以處理兩類的資料 一維陣列 ,使用 Series 物件 ,這邊說明. 二維陣列 (資料類似 Excel 或是 RDBMS […]

Read more

Python – re (Regular Expression) 模組

2023-02-172023-02-17 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentSO 8 (虛擬機) 在 Python 可以透過 re 模組來使用 Regular Expression (正規表達式) 來處理資料, 下面來看一下常用的 re 函數 . re.match(pattern, string, flags=0) 要特別注意這個函數的匹配須從字串的起頭 […]

Read more

Python – re 模組的 Regular Expression 語法

2023-02-172023-02-17 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentSO 8 (虛擬機) 在 Python 可以透過 re 模組來使用 Regular Expression (正規表達式) 來處理資料, 常用的 re 函數請參考 – https://benjr.tw/105370 , 這邊來看一下常用 Regular Expressi […]

Read more

SQLite – User-Defined Functions

2023-02-152023-02-16 adminLinux, Python, RedHat / CentOS, SQLite

Loading

測試環境為 CentSO 8 (虛擬機) SQLite 無法像是 MySQL 或是 MariaDB 使用者自訂函數 ( User-Defined Functions ) ,不過我們可以透過 SQLite 的 extensions – https://github.com/nalgeon/ […]

Read more

SQLite – IIF & CASE expression

2023-02-152023-02-15 adminSQLite

Loading

SQLite 沒有 IF 函數,可以使用 IIF 函數來取代,用法是一樣的. IIF 但需要高於 SQLite v3.32.0 以上版本才有提供. 函數說明 The iif(X,Y,Z) function returns the value Y if X is true, and Z otherwi […]

Read more

MariaDB – Count Number of Consecutive Occurrence of values

2023-02-132023-03-02 adminLinux, MariaDB, Mysql, RedHat / CentOS, SQLite

Loading

測試環境為 CentOS 8 X86_64 (虛擬機) 如何計算出連續資料的數目,參考文章 – https://stackoverflow.com/questions/36927685/count-number-of-consecutive-occurrence-of-values-in […]

Read more

SQLite – WITH Clause

2023-02-082023-02-08 adminSQLite

Loading

使用 WITH Clause 的方式,參考文章 https://www.sqlite.org/lang_with.html 透過 CTE : Common Table Expressions ,它可以把 SELECT 後整個 Table 儲存起來,共後續 SQL 語法來使用.而 Recursive […]

Read more

文章導覽

較舊的文章
較新的文章

近期文章

  • Windows – Network Sharing + Port forwarding to VM
  • Ansible – gather facts
  • Ansible – host_vars 定義特定的變量
  • Ansible 範例 – Chrony daemon
  • Ubuntu NTP Client 校時設定

近期留言

  • 「Jackson2734」於〈Ubuntu NTP Client 校時設定〉發佈留言
  • 「w」於〈Ubuntu 16.04 Server PXE 安裝〉發佈留言
  • 「admin」於〈TCP/IP 常見封包〉發佈留言
  • 「stu」於〈TCP/IP 常見封包〉發佈留言
  • 「student」於〈Linux command – tcpdump〉發佈留言

分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
  • Privacy Policy
  • 隱私權政策
Powered by WordPress | Theme: Astrid by aThemes.