Have you ever needed to create a DataFrame of "dummy" data, but without reading from a file? In this video, I'll demonstrate how to create a DataFrame from a dictionary, a list, and a NumPy array. I'll also show you how to create a new Series and attach it to the DataFrame.
SUBSCRIBE to learn data science with Python:
https://www.youtube.com/dataschool?su...
JOIN the "Data School Insiders" community and receive exclusive rewards:
/ dataschool
== RESOURCES ==
GitHub repository for the series: https://github.com/justmarkham/pandas...
"DataFrame" documentation: http://pandas.pydata.org/pandas-docs/...
"Series" documentation: http://pandas.pydata.org/pandas-docs/...
"set_index" documentation: http://pandas.pydata.org/pandas-docs/...
"concat" documentation: http://pandas.pydata.org/pandas-docs/...
"np.arange" documentation: http://docs.scipy.org/doc/numpy/refer...
"np.random" documentation: http://docs.scipy.org/doc/numpy/refer...
== RELATED VIDEOS ==
pandas index (part 1): • What do I need to know about the pand...
pandas index (part 2): • What do I need to know about the pand...
== LET'S CONNECT! ==
Newsletter: https://www.dataschool.io/subscribe/
Twitter: / justmarkham
Facebook: / datascienceschool
LinkedIn: / justmarkham