Is it possible to have stdin data go into a pandas DataFrame?
Currently I'm saving the data in an intermediate json
file and then doing:
pandas.read_json('my_json_file.json')
but was wondering if it's possible to pipe the stdin directly in the python script.
I found this: How to read from stdin or from a file if no data is piped in Python?
but not sure how to do a line-by-line insertion in a pandas DF.
Copyright Notice:Content Author:「Fra」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/18495846/pandas-data-from-stdin