text_html_output_1.png
import numpy as np

import pandas as pd

pd.Series([1, 2, 3, 4, 5])

list = [1, 2, 3, 4, 5]
series = pd.Series(list)
series

array = np.array([10, 20, 30, 40, 50])
series = pd.Series(array)
series

dict = {'a': 10, 'b': 20, 'd': 30}
series = pd.Series(dict)
series

series = pd.Series(range(15))
series

pd.DataFrame([1, 2, 3, 4, 5])

pd.DataFrame([1, 2, 3, 4, 5], index=['a', 'b', 'c', 'd', 'e'], columns=['Number'])

list = [['a', 25], ['b', 30], ['c', 26], ['d', 22]]
pd.DataFrame(list, columns=['Alphabet', 'Number'])

dict = {'Alphabet': ['a', 'b', 'c', 'd', 'e'], 'Number': [1, 2, 3, 4, 5]}
pd.DataFrame(dict)

array = np.array([1, 2, 3, 4, 5])
pd.DataFrame(array, columns=['Number'])

array = np.array([[1, 1], [2, 4], [3, 9], [4, 16], [5, 25]])
pd.DataFrame(array, columns=['Number', 'Square'])

pd.DataFrame(range(5))