Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content added to numpy #195

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/assets/Logos & Favicon/CDC High Resolution Circle Logo Transparent Background.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">

<script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
<title> PyLibLog</title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

const MatplotlibBasics = () => {
return (
<div>
<div className=" break-words w-screen lg:w-auto overflow-x-hidden px-7 my-10">
<h1>Introduction to Matplotlib</h1>

<p>Development can start for Matplotlib from here</p>
Expand Down
73 changes: 69 additions & 4 deletions src/Python_Library_Pages/Numpy/Intro-to-Numpy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,77 @@ import React from "react";

const NumpyBasics = () => {
return (
<div>
<h1>Introduction to NumPy</h1>
<div className="w-full lg:w-auto p-6 lg:p-10">
<h1 className="text-3xl font-bold text-gray-700">Introduction to NumPy</h1>

<p>Development can start for NumPy from here</p>
<p className="mt-4 text-gray-600 text-lg">
NumPy, short for Numerical Python, is a fundamental library in the Python ecosystem for numerical and scientific computing. It provides support for large, multi-dimensional arrays and matrices, along with a collection of high-level mathematical functions to operate on these arrays. NumPy is a must-know tool for anyone involved in data analysis, machine learning, scientific research, and more.
</p>

<h2 className="text-2xl font-bold text-gray-700 mt-6">Why NumPy?</h2>

<p className="mt-4 text-gray-600 text-lg">
You might be wondering why you should use NumPy when Python itself has a rich set of data structures and functions. Here are some compelling reasons:
</p>

<ul className="list-disc ml-6 text-gray-600 text-lg">
<li>
<b>Efficiency:</b> NumPy is implemented in C, which makes it faster and more efficient than pure Python code. It leverages pre-compiled functions and avoids the overhead of interpreting Python code.
</li>
<li>
<b>Multi-dimensional Arrays:</b> NumPy provides a powerful <code>ndarray</code> data structure, which allows you to work with arrays of any dimension (vectors, matrices, tensors) efficiently.
</li>
<li>
<b>Mathematical Functions:</b> NumPy includes a wide range of mathematical functions, including linear algebra, statistics, Fourier analysis, and more.
</li>
<li>
<b>Broadcasting:</b> NumPy's broadcasting feature allows you to perform operations on arrays of different shapes, making your code more concise and readable.
</li>
<li>
<b>Interoperability:</b> NumPy integrates seamlessly with other scientific libraries in Python, such as SciPy, Matplotlib, and Pandas.
</li>
</ul>

<h2 className="text-2xl font-bold text-gray-700 mt-6">Getting Started</h2>

<p className="mt-4 text-gray-600 text-lg">
Before you dive into NumPy, you'll need to ensure that Python and NumPy are installed on your system. Let's go through the installation process:
</p>

<h3 className="text-xl font-bold text-gray-700 mt-6">Python Installation (if needed)</h3>
<p className="mt-2 text-gray-600 text-lg">
If you haven't installed Python, follow these steps to get it up and running on your system:
</p>

<div className="bg-gray-100 p-4 rounded-lg mt-4">
<h4 className="text-lg font-bold text-gray-700">For Windows:</h4>
<ol className="list-decimal ml-6 text-gray-600">
<li>Visit the official Python website at <a href="https://www.python.org/" className="text-blue-500">python.org</a></li>
<li>Navigate to the "Downloads" section.</li>
<li>Click on the latest version of Python for Windows.</li>
<li>Run the downloaded installer.</li>
<li>Check the box that says "Add Python to PATH" during installation.</li>
<li>Click "Install Now" to start the installation process.</li>
<li>Open a Command Prompt or PowerShell.</li>
<li>Type <code>python --version</code> or <code>python -V</code> and press Enter to verify the installation.</li>
</ol>
</div>

<h2 className="text-2xl font-bold text-gray-700 mt-8">Installing NumPy</h2>

<p className="mt-4 text-gray-600 text-lg">
Once Python is installed, it's straightforward to install NumPy. Open your terminal or command prompt and run the following command:
</p>

<div className="bg-gray-800 p-4 text-white rounded-lg mt-4">
<code>pip install numpy</code>
</div>

<p className="mt-4 text-gray-600 text-lg">
This command will install NumPy on your system. Once NumPy is installed, you're ready to dive into the world of numerical computing with Python. Let's start exploring NumPy and its capabilities!
</p>
</div>
);
};

export default NumpyBasics;
export default NumpyBasics;
2 changes: 1 addition & 1 deletion src/Python_Library_Pages/Pandas/Intro-to-Pandas.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

const PandasBasics = () => {
return (
<div>
<div className=" break-words w-screen lg:w-auto overflow-x-hidden px-7 my-10">
<h1>Introduction to Pandas</h1>

<p>Development can start for Pandas from here</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

const OperatorsBasics = () => {
return (
<div>
<div className=" break-words w-screen lg:w-auto overflow-x-hidden px-7 my-10">
<h1>Introduction to Operators in Python</h1>

<p>Development can start for Python from here</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

const FunctionsBasics = () => {
return (
<div>
<div className=" break-words w-screen lg:w-auto overflow-x-hidden px-7 my-10">
<h1>Introduction to Functions in Python</h1>

<p>Development can start for Python from here</p>
Expand Down
55 changes: 29 additions & 26 deletions src/Python_Library_Pages/Python_Basics/Introduction-to-Python.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,48 @@ import React from "react";

const PythonBasics = () => {
return (
<div>
<div className=" break-words w-screen lg:w-auto overflow-x-hidden px-7 my-10">

<h1><b>1. Introduction to Python</b></h1>
<br />
<pre>
<code>
{`Python is a high-level, interpreted programming language known for its readability and simplicity. It:
- Supports multiple programming paradigms.
- Has a large standard library.
- Python is free and easy to learn.

<pre className="text-sm overflow-x-auto p-5">
<code>
{`Python is a high-level, interpreted programming language known for its readability and simplicity. It:
- Supports multiple programming paradigms.
- Has a large standard library.
- Python is free and easy to learn.

This doc will help you to get all the knowledge you want for getting started with Python.
If you have never programmed anything before and are just getting started, this might be the blog for you.
Python has many use cases in different industries such as

Web Development:
- Frameworks like Django and Flask make Python a popular choice for building web applications.
Web Development:
- Frameworks like Django and Flask make Python a popular choice for building web applications.

Data Science and Machine Learning:
- Python is extensively used for data analysis, machine learning, and artificial intelligence.
- Libraries such as NumPy, Pandas, Scikit-learn, TensorFlow, and PyTorch are widely employed.
Data Science and Machine Learning:
- Python is extensively used for data analysis, machine learning, and artificial intelligence.
- Libraries such as NumPy, Pandas, Scikit-learn, TensorFlow, and PyTorch are widely employed.

Finance:
- Python is used in finance for quantitative analysis, risk management, and algorithmic trading.
- Libraries such as Pandas and NumPy are particularly useful in this domain.
Finance:
- Python is used in finance for quantitative analysis, risk management, and algorithmic trading.
- Libraries such as Pandas and NumPy are particularly useful in this domain.

Education:
- Python is widely used in teaching programming due to its simplicity.
- It's often the first language taught in many computer science courses.
Education:
- Python is widely used in teaching programming due to its simplicity.
- It's often the first language taught in many computer science courses.

Game Development:
- Python is used in the game development industry, and libraries like Pygame make it
easier to develop 2D games.

GIS (Geographic Information System):
- Python is used for GIS applications, and libraries like Geopandas and ArcPy are popular
in this field.`}
</code>
</pre>

Game Development:
- Python is used in the game development industry, and libraries like Pygame make it
easier to develop 2D games.

GIS (Geographic Information System):
- Python is used for GIS applications, and libraries like Geopandas and ArcPy are popular
in this field.`}
</code>
</pre>
<br />
<br />

Expand Down
Loading