Building for the Splunk Platform

Splunk Python with pandas

sreedharmishra1
New Member

How to create a dataframe from the splunk search result 

I have tried the below code and I can create a data frame using pandas, but while retrieving each column i am not able to get the desired output 

import pandas as pd

df = pd.DataFrame.from_records(tuple_generator, columns = tuple_fields_name_list)

Could you please support 

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Happy CX Day to our Community Superheroes!

Happy 10th Birthday CX Day!What is CX Day? It’s a global celebration recognizing innovation and success in the ...

Check out This Month’s Brand new Splunk Lantern Articles

Splunk Lantern is a customer success center providing advice from Splunk experts on valuable data insights, ...

Routing Data to Different Splunk Indexes in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...