ML Practice
ML Practice
NumPy (Numerical Python) is the fundamental package for scientific computing in Python. It provides
support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions
to operate on these arrays efficiently.
NumPy Example 1
# Importing NumPy Array
import numpy as np
# Printing
NumPy Example 2
Pandas
Pandas is an open-source data manipulation and analysis library built on top of NumPy. It
provides data structures and functions needed to manipulate structured data seamlessly.
Example 2:
import pandas as pd
df = pd.read_csv('iris.csv')
print(df)
print(df.to_string())
df.head()
df.tail()
df.head(10)
df.tail(10)
types.
Example 1:
import numpy as np
y = np.sin(x)
ax.set_title('Sin Wave')
ax.plot(x, y)
plt.show()
Example 2:
Seaborn
Seaborn is a Python visualization library based on Matplotlib that provides a high-level interface
for drawing attractive and informative statistical graphics.