Data Analysis code samples (Python)

Avatar of Yarik 易飛青.
Avatar of Yarik 易飛青.

Data Analysis code samples (Python)

Clinican Data Research Assistant
Taipei, Taiwan

My GitHub repositories: github.com/yarik89spb?tab=repositories

I have compiled a collection of Python code examples that can be used for various data analysis, machine learning, and data processing tasks. These examples were written while working with real-world data, and I would like to share them with others. In most cases, these code snippets require the Pandas and/or NumPy libraries to run. The expected input for these examples is typically a Pandas DataFrame or its columns.

I have designed these code examples to be versatile so that you can easily copy and apply them to your own datasets. Additionally, I have incorporated vectorized operations to optimize the code for speed, making it suitable for large datasets. If the description of a particular test is unclear, I have included a small sample dataframe to help you test the code and compare the input with the output.

我整理了一系列 Python 代碼範例,可以用於數據分析、機器學習和數據處理任務。這些範例都是在處理真實世界的數據時撰寫的,現在我想與其他人分享。通常情況下,這些程式碼片段需要使用 Pandas 和/或 NumPy 函式庫才能運行。預期的輸入通常是 Pandas DataFrame 或其欄位。

我設計這些範例程式碼要具有通用性,這樣您就可以輕鬆地將它們複製並應用於自己的數據集上。此外,我還使用向量化操作來優化程式碼的運行速度,使其適用於大型數據集。如果某個測試的描述不清楚,我都會提供一個小的示例數據框,以幫助您測試程式碼並比較輸入和輸出的結果。

 


My custom functions and code samples written in Python. Useful for data processing and transformation.
Avatar of the user.
Please login to comment.

Published: Jun 9th 2023
70
6
0

Tools

python
Python

資料分析
Data Analysis
資料清理
Data Cleansing
Contributions
Code
GitHub
Python

Share