Skip to content

Commit

Permalink
Merge pull request #375 from ZJUEarthData/dev/jmNormal722
Browse files Browse the repository at this point in the history
fix: Add a -1 detection in the log_distribution_plot function
  • Loading branch information
SanyHe committed Jul 30, 2024
2 parents dd3e243 + 2bd4e0a commit b851a2e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ For more details: Please refer to:
The following screenshot shows the downloads and launching of our software on macOS:

<p align="center">
<img src="https://github.com/ZJUEarthData/geochemistrypi/assets/47497750/70728795-59b7-4741-ab5b-9e63d284ad37" alt="Downloads and Launching on macOS" width="450" />
<img src="https://github.com/user-attachments/assets/4fa0e2e7-20ad-4548-ab6c-ca5f26ba0106" alt="Downloads and Launching on macOS" width="450" />
</p>

## Roadmap
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import sphinx_rtd_theme

project = "Geochemistry π"
copyright = "2023, ZJUEarthData"
copyright = "2024, ZJUEarthData"
author = "ZJUEarthData"
# release = 'v0.1.0'

Expand Down
3 changes: 3 additions & 0 deletions geochemistrypi/data_mining/plot/statistic_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def log_distribution_plot(col: pd.Index, df: pd.DataFrame) -> None:
df : pd.DataFrame
The data set.
"""
# Replace -1 with -1.0001
df[col] = df[col].replace(-1, -1.0001)

# Log transform the required columns
df_log_transformed = df[col].applymap(lambda x: np.log(x + 1))

Expand Down

0 comments on commit b851a2e

Please sign in to comment.