Skip to content

Instantly share code, notes, and snippets.

@rimever
Created January 7, 2019 13:15
Show Gist options
  • Save rimever/be770a800c2fe9162ab6b5657dd441c1 to your computer and use it in GitHub Desktop.
Save rimever/be770a800c2fe9162ab6b5657dd441c1 to your computer and use it in GitHub Desktop.
辞書型をDataFrameの行に追加
key_value = {}
key_value['course'] = course
key_value['number'] = grid
key_value['year'] = year
series = pd.Series(list(key_value.values()), index=key_value.keys())
df = df.append(series, ignore_index = True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment