X Tutup
Skip to content

DOC : add note about np.matrix and pandas objects#3394

Merged
jenshnielsen merged 2 commits intomatplotlib:masterfrom
tacaswell:input_type_faq
Aug 22, 2014
Merged

DOC : add note about np.matrix and pandas objects#3394
jenshnielsen merged 2 commits intomatplotlib:masterfrom
tacaswell:input_type_faq

Conversation

@tacaswell
Copy link
Copy Markdown
Member

There is no intentional support for np.matrix or
pandas data objects as input to plotting functions.

Closes #2138

There is no intentional support for np.matrix or
pandas data objects as input to plotting functions.
@tacaswell tacaswell added this to the v1.4.0 milestone Aug 22, 2014
@jenshnielsen
Copy link
Copy Markdown
Member

This looks good to me. Do we want to add a note with an example about how to do this?
I.e.

a = pandas.DataFrame(np.random.rand(4,5), columns = list('abcde'))
a_asndarray = a.values
b = np.matrix([[1,2],[3,4]])
b_asarray = np.asarray(b)

Otherwise this is ready to merge

@tacaswell
Copy link
Copy Markdown
Member Author

Done.

@WeatherGod
Copy link
Copy Markdown
Member

+1 from me. I'll merge once the Travis confirms everything

@jenshnielsen
Copy link
Copy Markdown
Member

After restarting travis, the non related error went away. Merging

jenshnielsen added a commit that referenced this pull request Aug 22, 2014
DOC : add note about np.matrix and pandas objects
@jenshnielsen jenshnielsen merged commit aa49f1f into matplotlib:master Aug 22, 2014
@WeatherGod
Copy link
Copy Markdown
Member

Ah, beat me to it!

@tacaswell tacaswell deleted the input_type_faq branch August 22, 2014 18:27
jenshnielsen added a commit to jenshnielsen/matplotlib that referenced this pull request Aug 22, 2014
DOC : add note about np.matrix and pandas objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pyplot.scatter not converting *x* and *y* to a 1-D sequence when the input is a 1xN matrix...

4 participants

X Tutup