diff --git a/_sources/faq/usage_faq.rst.txt b/_sources/faq/usage_faq.rst.txt index fd240d8ca80..41f7b0e4071 100644 --- a/_sources/faq/usage_faq.rst.txt +++ b/_sources/faq/usage_faq.rst.txt @@ -124,12 +124,12 @@ input. Classes that are 'array-like' such as `pandas` data objects and `np.matrix` may or may not work as intended. It is best to convert these to `np.array` objects prior to plotting. -For example, to covert a `pandas.DataFrame` :: +For example, to convert a `pandas.DataFrame` :: a = pandas.DataFrame(np.random.rand(4,5), columns = list('abcde')) a_asndarray = a.values -and to covert a `np.matrix` :: +and to convert a `np.matrix` :: b = np.matrix([[1,2],[3,4]]) b_asarray = np.asarray(b) diff --git a/_sources/faq/usage_faq.txt b/_sources/faq/usage_faq.txt index ffe99d8e5b1..9e00cee5598 100644 --- a/_sources/faq/usage_faq.txt +++ b/_sources/faq/usage_faq.txt @@ -124,12 +124,12 @@ input. Classes that are 'array-like' such as `pandas` data objects and `np.matrix` may or may not work as intended. It is best to convert these to `np.array` objects prior to plotting. -For example, to covert a `pandas.DataFrame` :: +For example, to convert a `pandas.DataFrame` :: a = pandas.DataFrame(np.random.rand(4,5), columns = list('abcde')) a_asndarray = a.values -and to covert a `np.matrix` :: +and to convert a `np.matrix` :: b = np.matrix([[1,2],[3,4]]) b_asarray = np.asarray(b) diff --git a/_sources/tutorials/introductory/usage.rst.txt b/_sources/tutorials/introductory/usage.rst.txt index 25df50e101c..c09ca07d2ee 100644 --- a/_sources/tutorials/introductory/usage.rst.txt +++ b/_sources/tutorials/introductory/usage.rst.txt @@ -179,7 +179,7 @@ For example, to convert a `pandas.DataFrame` :: a = pandas.DataFrame(np.random.rand(4,5), columns = list('abcde')) a_asndarray = a.values -and to covert a `np.matrix` :: +and to convert a `np.matrix` :: b = np.matrix([[1,2],[3,4]]) b_asarray = np.asarray(b)