Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

how to operate a vector in python code example

Example: vector in python

# Load library
import numpy as np

# Create a vector as a row
vector_row = np.array([1, 2, 3])

# Create a vector as a column
vector_column = np.array([[1],
                          [2],
                          [3]])

Tags:

Python Example

Related

creating table date sql code example javascript convert string to char codes code example tomcat running status in linux code example how to use where condition in linq c# code example bootostrap rails code example splice ini js code example jquery event watch input change code example determine prime number javascript code example php get array element by max key code example get database size phpmyadmin code example loop objects in array by name javascript code example set value timestamp mysql code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy