Skip to content

Tag: nonetype

Replacing None with a list within a dataframe

I have the below dataframe which comes from a JSON trying to format ready for db insertion, i am splitting using .tolist() but getting error for None entries. tried fillna and replace to insert a dummy list i.e. [0,0,0] but will only let me replace with a string. Any suggestions welcome. this works #df_split_…

Integrate Class

So I have been trying to create an integrate class for an assignment and while I have gotten a simple skeletal structure for the functions within said class, I keep on getting a None result, which really bugs me. The code that I have written down though is written below. What do I do to make this code work? A…