Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbringuier committed Dec 18, 2020
2 parents 03f1e09 + a27e17d commit 3d874c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions conda-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- python=3.7.*
- numpy=1.18.*
- pandas=1.0.*
- pandas-profiling=2.4.*
- pandas-profiling=2.8.*
- matplotlib=3.2.*
- seaborn=0.10.*
- scikit-learn=0.22.*
Expand All @@ -15,4 +15,4 @@ dependencies:
- cudatoolkit=10.*
- tqdm=4.43.*
- ipython
- jupyter
- jupyter
6 changes: 3 additions & 3 deletions notebooks/CBFV/cbfv/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ def generate_features(df, elem_prop='oliynyk',

# get the column names
cols = X.columns.values
# find the mean value of each column
# find the median value of each column
median_values = X[cols].median()
# fill the missing values in each column with the columns mean value
X[cols] = X[cols].fillna(median_values.iloc[0])
# fill the missing values in each column with the column's median value
X[cols] = X[cols].fillna(median_values)
return X, y, formulae, skipped


Expand Down

0 comments on commit 3d874c5

Please sign in to comment.