loop through and create
for item in a:
item = []
or you can use list comprehension
a = [[] for item in a]
if your intended output is [[i], [j], [k]]
then use
a = [[item] for item in a]
More Related Contents:
- What does [:] mean?
- How to normalize a 2-dimensional numpy array in python less verbose?
- Find the row indexes of several values in a numpy array
- How to read a text file into a list or an array with Python
- How to split a string of space separated numbers into integers?
- How to apply a disc shaped mask to a NumPy array?
- Shuffle an array with python, randomize array item order with python
- Get the position of the largest value in a multi-dimensional NumPy array
- Using Numpy Vectorize on Functions that Return Vectors
- How to translate “bytes” objects into literal strings in pandas Dataframe, Python3.x?
- “In” operator for numpy arrays?
- How to replace values at specific indexes of a python list?
- What is the purpose of the colon before a block in Python?
- np arrays being immutable – “assignment destination is read-only”
- Numpy individual element access slower than for lists
- How to turn a video into numpy array?
- Can numpy bincount work with 2D arrays?
- How to convert hexadecimal string to bytes in Python?
- Sort invariant for numpy.argsort with multiple dimensions
- Numpy isnan() fails on an array of floats (from pandas dataframe apply)
- How can I interleave or create unique permutations of two strings (without recursion)
- Concatenate range arrays given start, stop numbers in a vectorized way – NumPy
- How to pass a 2d array from Python to C?
- Numpy – Replace a number with NaN
- Python list([]) and []
- Numpy shuffle multidimensional array by row only, keep column order unchanged
- How to “scale” a numpy array?
- How to create an array of bits in Python?
- Convert binary string to bytearray in Python 3
- Generate random array of floats between a range