---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
C:\dev\apps\Anaconda3\lib\site-packages\pandas\core\internals.py in create_block_manager_from_blocks(blocks, axes)
4621 blocks = [make_block(values=blocks[0],
-> 4622 placement=slice(0, len(axes[0])))]
4623
C:\dev\apps\Anaconda3\lib\site-packages\pandas\core\internals.py in make_block(values, placement, klass, ndim, dtype, fastpath)
2956
-> 2957 return klass(values, ndim=ndim, fastpath=fastpath, placement=placement)
2958
C:\dev\apps\Anaconda3\lib\site-packages\pandas\core\internals.py in __init__(self, values, placement, ndim, fastpath)
119 'implies %d' % (len(self.values),
--> 120 len(self.mgr_locs)))
121
ValueError: Wrong number of items passed 1, placement implies 7
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
<ipython-input-15-39440f1bf564> in <module>()
----> 1 df = pd.DataFrame(np.random.randint(10,30,7), columns="Mo,Di,Mi,Do,Fr,Sa,So".split(","))
2 df
C:\dev\apps\Anaconda3\lib\site-packages\pandas\core\frame.py in __init__(self, data, index, columns, dtype, copy)
359 else:
360 mgr = self._init_ndarray(data, index, columns, dtype=dtype,
--> 361 copy=copy)
362 elif isinstance(data, (list, types.GeneratorType)):
363 if isinstance(data, types.GeneratorType):
C:\dev\apps\Anaconda3\lib\site-packages\pandas\core\frame.py in _init_ndarray(self, values, index, columns, dtype, copy)
531 values = maybe_infer_to_datetimelike(values)
532
--> 533 return create_block_manager_from_blocks([values], [columns, index])
534
535 @property
C:\dev\apps\Anaconda3\lib\site-packages\pandas\core\internals.py in create_block_manager_from_blocks(blocks, axes)
4629 blocks = [getattr(b, 'values', b) for b in blocks]
4630 tot_items = sum(b.shape[0] for b in blocks)
-> 4631 construction_error(tot_items, blocks[0].shape[1:], axes, e)
4632
4633
C:\dev\apps\Anaconda3\lib\site-packages\pandas\core\internals.py in construction_error(tot_items, block_shape, axes, e)
4606 raise ValueError("Empty data passed with indices specified.")
4607 raise ValueError("Shape of passed values is {0}, indices imply {1}".format(
-> 4608 passed, implied))
4609
4610
ValueError: Shape of passed values is (1, 7), indices imply (7, 7)