+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "toDataFrame"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## toDataFrame() function

### toDataFrame() function

Inspect any object and return the results as a DataFrame

<b>Signature</b>

```typescript
export declare function toDataFrame(data: any): DataFrame;
```
<b>Import</b>

```typescript
import { toDataFrame } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  data | <code>any</code> |  |

<b>Returns:</b>

`DataFrame`

