+++
# -----------------------------------------------------------------------
# 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
Signature
```typescript
export declare function toDataFrame(data: any): DataFrame;
```
Import
```typescript
import { toDataFrame } from '@grafana/data';
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| data | any
| |
Returns:
`DataFrame`