# get spead sheet data using GetCellData

**URL:** https://discourse.paraview.org/t/get-spead-sheet-data-using-getcelldata/7138
**Category:** ParaView Support
**Tags:** python
**Created:** [May 4, 2021, 10:14am UTC](https://discourse.paraview.org/t/get-spead-sheet-data-using-getcelldata/7138 "2021-05-04T10:14:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![moritz](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@moritz](https://discourse.paraview.org/u/moritz)
#### Post date: [May 4, 2021, 10:14am UTC](https://discourse.paraview.org/t/get-spead-sheet-data-using-getcelldata/7138/1 "2021-05-04T10:14:33Z")

</div>

Hi,

I am new to Paraview and Python coding so please be gentle 😃  
I used this basic code to get the Field Data from the spreadsheet after using CellSize to compute the sum of the cells volume and it worked flawlessly.

```
from paraview.simple import *
import numpy as np
CellSize = GetActiveSource()
raw_data_handle = servermanager.Fetch(CellSize)
raw_data= np.asarray(raw_data_handle.GetFieldData().GetArray('Volume'))

```

However now I need to get the individual cell volumes from Cell Data. I tried GetCellData() instead of GetFieldData() as I have seen it work in many other threads, but I always get this error:

AttributeError: ‘vtkmodules.vtkCommonDataModel.vtkMultiBlockDataSet’ object has no attribute ‘GetCellData’

Am I using GetCellData() incorrectly or do I need to use some other way to get my Cell Data (Volume)?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 4, 2021, 12:14pm UTC](https://discourse.paraview.org/t/get-spead-sheet-data-using-getcelldata/7138/2 "2021-05-04T12:14:23Z")

</div>

You dataset is a multiblock dataset which does not contain a GetCellData method. You can use merge blocks filters before fetching the data.

---

<div class="post-metadata">

### Author: ![moritz](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/58956e/32.png) [@moritz](https://discourse.paraview.org/u/moritz)
#### Post date: [May 4, 2021, 6:24pm UTC](https://discourse.paraview.org/t/get-spead-sheet-data-using-getcelldata/7138/3 "2021-05-04T18:24:11Z")

</div>

Thanks for the answer!
