Skip to content
Advertisement

Creating a dataframe from a dictionary is giving me a could not broadcast error

I am trying to create a data frame from a dictionary I have and it gives me an error that says:

JavaScript

Here is the code:

JavaScript

Please tell me how I can transform the data I have into a data frame so I can export it into a csv first of all I was trying to to scrape this jobs website and it scraped it successfully returning 500 jobs in the dictionary but I was unfortunately not able to transform the code into a dataframe, so later on i can export that out to a csv file, so i can do some analysis on it

Advertisement

Answer

To create dataframe from the job ads, you can try next example (some column names needs to be renamed from arabic to english though):

JavaScript

Creates data.csv (screenshot from LibreOffice):

enter image description here

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement