Use the DataFrame API to: 1. Read in-memory data.
()
| 180 | /// Use the DataFrame API to: |
| 181 | /// 1. Read in-memory data. |
| 182 | async fn read_memory_macro() -> Result<()> { |
| 183 | // create a DataFrame using macro |
| 184 | let df = dataframe!( |
| 185 | "a" => ["a", "b", "c", "d"], |
| 186 | "b" => [1, 10, 10, 100] |
| 187 | )?; |
| 188 | // print the results |
| 189 | df.show().await?; |
| 190 | |
| 191 | // create empty DataFrame using macro |
| 192 | let df_empty = dataframe!()?; |
| 193 | df_empty.show().await?; |
| 194 | |
| 195 | Ok(()) |
| 196 | } |
| 197 | |
| 198 | /// Use the DataFrame API to: |
| 199 | /// 1. Write out a DataFrame to a table |
no test coverage detected
searching dependent graphs…