Skip to content

Commit

Permalink
Merge pull request #284 from JosephBARBIERDARNAL/rm-deprecated-func
Browse files Browse the repository at this point in the history
change distplot (deprecated) to displot
  • Loading branch information
holtzy authored Mar 6, 2024
2 parents a20d717 + 186461a commit 99e9735
Show file tree
Hide file tree
Showing 5 changed files with 181,723 additions and 205 deletions.
2,987 changes: 2,934 additions & 53 deletions src/notebooks/20-basic-histogram-seaborn.ipynb

Large diffs are not rendered by default.

106 changes: 60 additions & 46 deletions src/notebooks/21-control-rug-and-density-on-seaborn-histogram.ipynb

Large diffs are not rendered by default.

37 changes: 19 additions & 18 deletions src/notebooks/24-histogram-with-a-boxplot-on-top-seaborn.ipynb

Large diffs are not rendered by default.

178,790 changes: 178,706 additions & 84 deletions src/notebooks/choropleth-map-geopandas-python.ipynb

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/pages/histogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const quickCode = `# library & dataset
import seaborn as sns
df = sns.load_dataset('iris')
# Plot the histogram thanks to the distplot function
sns.distplot( a=df["sepal_length"], hist=True, kde=False, rug=False )
# Plot the histogram thanks to the displot function
sns.displot( data=df["sepal_length"], kde=True )
`;

const quickCodeMatplotlib = `# library & dataset
Expand Down Expand Up @@ -87,7 +87,7 @@ export default function Histogram() {
<Col md={6}>
<p>
<code>Seaborn</code> is definitely the best library to quickly
build a histogram thanks to its <code>distplot()</code>.
build a histogram thanks to its <code>displot()</code>.
</p>
<p>
Note the importance of the <code>bins</code> parameter: try
Expand Down Expand Up @@ -116,7 +116,7 @@ export default function Histogram() {
<p>
<code>Seaborn</code> is a python library allowing to make better
charts easily. It is well adapted to build histogram thanks to its{' '}
<code>distplot</code> function. The following charts will guide you
<code>displot</code> function. The following charts will guide you
through its usage, going from a very{' '}
<Link to="">basic histogram</Link> to something much more{' '}
<Link to="">customized</Link>.
Expand Down

0 comments on commit 99e9735

Please sign in to comment.