Skip to content

Commit a49c6b6

Browse files
author
Matheus Magrin
committed
Removes matplotlib style warning
1 parent 88313fa commit a49c6b6

7 files changed

+7
-7
lines changed

cookbook/Chapter 1 - Reading from a CSV.ipynb

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

cookbook/Chapter 2 - Selecting data & finding the most common complaint type.ipynb

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

cookbook/Chapter 3 - Which borough has the most noise complaints (or, more selecting data).ipynb

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

cookbook/Chapter 4 - Find out on which weekday people bike the most with groupby and aggregate.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"import pandas as pd\n",
1414
"import matplotlib.pyplot as plt\n",
1515
"\n",
16-
"pd.set_option('display.mpl_style', 'default') # Make the graphs a bit prettier\n",
16+
"plt.style.use('ggplot') # Make the graphs a bit prettier\n",
1717
"plt.rcParams['figure.figsize'] = (15, 5)\n",
1818
"plt.rcParams['font.family'] = 'sans-serif'\n",
1919
"\n",

cookbook/Chapter 5 - Combining dataframes and scraping Canadian weather data.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"import matplotlib.pyplot as plt\n",
1414
"import numpy as np\n",
1515
"\n",
16-
"pd.set_option('display.mpl_style', 'default')\n",
16+
"plt.style.use('ggplot')\n",
1717
"plt.rcParams['figure.figsize'] = (15, 3)\n",
1818
"plt.rcParams['font.family'] = 'sans-serif'"
1919
]

cookbook/Chapter 6 - String Operations- Which month was the snowiest.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"import matplotlib.pyplot as plt\n",
1515
"import numpy as np\n",
1616
"\n",
17-
"pd.set_option('display.mpl_style', 'default')\n",
17+
"plt.style.use('ggplot')\n",
1818
"plt.rcParams['figure.figsize'] = (15, 3)\n",
1919
"plt.rcParams['font.family'] = 'sans-serif'"
2020
]

cookbook/Chapter 7 - Cleaning up messy data.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"import numpy as np\n",
1717
"\n",
1818
"# Make the graphs a bit prettier, and bigger\n",
19-
"pd.set_option('display.mpl_style', 'default')\n",
19+
"plt.style.use('ggplot')\n",
2020
"plt.rcParams['figure.figsize'] = (15, 5)\n",
2121
"plt.rcParams['font.family'] = 'sans-serif'\n",
2222
"\n",

0 commit comments

Comments
 (0)