<jupyter_start><jupyter_text>numpy and pandas<jupyter_code>import numpy as np
x = np.array([1,2,3,4,5,6])
print(type(x))

x =np.array([1,2,3,"hello"])
x
a=[1,2,3,4,[2,5]]
a
x=np.array([[1,2,3],[4,5,6],[7,8,9] ])
x.shape
print(x)
x=np.zeros((3,3))
x
x=np.ones((3,3))
x
x=np.diag([10,20,30])
x
x=np.eye(3)#idintity matrix
x
x=np.eye(3,dtype=np.int64)
x
x=np.arange(0,25)
x
x=np.linspace(0,25,10)
x
x=np.reshape(x,(5,2))
x
x=np.random.random()
x
x=np.random.randint(0,60,size=(3,2))# 3 rows and two coloums
x
# to fetch the value from the matrix
x[0,0]

x[1,1]
x=np.array([1,2,3,4,5])
print(x.max())
x.mean()

y=[1,2,3,4]
y*2
x=np.random.randint(0,60,size=(3,2))
x
x*2 #matrix hets multiplied by 2<jupyter_output><empty_output><jupyter_text>pandas<jupyter_code>import pandas as pd

df_students=pd.read_rsv("grades,csv")

df_students=pd.read_rsv
df_students.isnull().sum()
x=pd.series([1,2,3,4,5])
x.max()
import pandas as pd
x=pd.series([1,2,3,4,5])<jupyter_output><empty_output><jupyter_text>data visulaization<jupyter_code>import matplotlib.pyplot as plt
dir(plt)
help(plt.bar)
plt.bar(x=df_students.names,height=df_students.grade,color="orange")
plt.xticks(rotation=90)
plt.show
help(plt.subplot)<jupyter_output>Help on function subplot in module matplotlib.pyplot:

subplot(*args, **kwargs)
    Add a subplot to the current figure.
    
    Wrapper of `.Figure.add_subplot` with a difference in behavior
    explained in the notes section.
    
    Call signatures::
    
       subplot(nrows, ncols, index, **kwargs)
       subplot(pos, **kwargs)
       subplot(**kwargs)
       subplot(ax)
    
    Parameters
    ----------
    *args : int, (int, int, *index*), or `.SubplotSpec`, default: (1, 1, 1)
        The position of the subplot described by one of
    
        - Three integers (*nrows*, *ncols*, *index*). The subplot will take the
          *index* position on a grid with *nrows* rows and *ncols* columns.
          *index* starts at 1 in the upper left corner and increases to the
          right. *index* can also be a two-tuple specifying the (*first*,
          *last*) indices (1-based, and including *last*) of the subplot, e.g.,
          ``fig.add_subplot(3, 1, (1, 2))`` makes a subplot t[...]
{'fraction_non_alphanumeric': 0.17320703653585928, 'fraction_numerical': 0.04330175913396482, 'mean_word_length': 4.122401847575058, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '662859', 'license': 'Apache-2.0', 'n_tokens_mistral': 960, 'n_tokens_neox': 923, 'n_words': 209, 'path': 'only python codes/senior trainning.ipynb', 'repo_name': 'NEERAJASHISH/my-personal-codes', 'size': '2217'}