Varun

np.ones() – Create 1D / 2D Numpy Array filled with ones (1’s)

In this article, we will discuss how to create 1D or 2D numpy arrays filled with ones (1s). numpy.ones() Python’s Numpy module provides a function to create a numpy array of given shape & type and filled with 1’s i.e, Arguments: shape: Shape of the numpy array. Single integer or sequence of integers. dtype: (Optional)

np.ones() – Create 1D / 2D Numpy Array filled with ones (1’s) Read More »

Linux: Create directory or folder using mkdir command

In this article we will discuss how to create a single or multiple directories in Linux using mkdir command. Then we will see various examples like, creating folders with space in name or creating folders with different permissions or creating nested directories recursively in single command. Table of Contents mkdir command – Introduction Create a

Linux: Create directory or folder using mkdir command Read More »

Scroll to Top