What does numpy.c_ do?

I read the documentation and a couple of answers on the internet as well. I’m still not able to understand what it does. Can anyone please point me to the right resources to understand it or explain it (maybe the different angle might help)? Thanks in advance :slight_smile:

P.S: Hi all! I’m Suchit from India and I’m loving this course so far!

Hi @Suchit_G

Could you be more specific about which assignment you are referring to.

It’s a terse way of expressing a concatenation. It’s a particular parameterization of the more general numpy.r_

See the explanation and examples here:


Hi there @Kic :wave:
np.c_ is first used in the “Selecting Features” section in the optional lab “Feature Engineering and Polynomial Regression”.

I’ve got a fair bit of an idea about np.c_ after reading through np.r_, though I’ve not understood it fully. I’ll try exploring it with my own examples. Thank you for the answer :slight_smile:

1 Like