Sunday, November 3, 2019

Other important commands in Python


Other important commands in Python



1. arange() : [ PS: it is arange not arrange, even I got confused for the first time :p ]
arange returns a full array, which occupies memory, which might be overhead.



2. reshape():


3. Transpose frame: 


4.Transpose Transpose frame:


Example: 


1. re-indexing or changing the order of rows:


2. re-indexing or changing the order of columns:


3. re-indexing:


4. Using comparator operator:


5. Using comparator operator and gives result in True/False:


6. To display everything up to three.



7. For concatenation of two data use '+' operator.



No comments:

Post a Comment