Pandas and NumPy Exercise for Data Analysis Last Updated : 04 Jul, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report NumPy Exercises for Data AnalysisNumPy Array ExercisesHow to create an empty and a full NumPy array?Create a Numpy array filled with all zerosCreate a Numpy array filled with all onesCheck whether a Numpy array contains a specified rowHow to Remove rows in Numpy array that contains non-numeric values?Combining a one and a two-dimensional NumPy ArrayHow to compare two NumPy arrays?How to get all 2D diagonals of a 3D NumPy array?Flatten a Matrix in Python using NumPyCounts the number of non-zero values in the arrayTrim the leading and/or trailing zeros from a 1-D arrayReverse a numpy arrayNumPy Matrix ExercisesGet the maximum value from given matrixGet the minimum value from given matrixFind the number of rows and columns of a given matrix using NumPyAdding and Subtracting Matrices in PythonMatrix Multiplication in NumPyWays to add row/columns in numpy arrayGet the eigen values of a matrixHow to count the frequency of unique values in NumPy array?How to inverse a matrix using NumPyHow to Calculate the determinant of a matrix using NumPy?Multiply matrices of complex numbers using NumPy in PythonCalculate inner, outer, and cross products of matrices and vectors using NumPyConvert covariance matrix to correlation matrix using PythonNumPy Indexing ExercisesReplace NumPy array elements that doesn’t satisfy the given conditionReturn the indices of elements where the given condition is satisfiedReplace negative value with zero in numpy arrayReplace NaN values with average of columnsHow to get values of an NumPy array at certain index positions?Find indices of elements equal to zero in a NumPy arrayHow to access different rows of a multidimensional NumPy array?How to Remove columns in Numpy array that contains non-numeric values?Get row numbers of NumPy array having element larger than XCheck elements present in the NumPy arrayCombined array index by indexNumPy Sorting and Searching ExercisesHow to get the indices of the sorted array using NumPy in Python?Finding the k smallest values of a NumPy arrayHow to get the n-largest values of an array using NumPy?Sort the values in a matrixFilter out integers from float numpy arrayFind the indices into a sorted arrayNumPy Random ExercisesCreate a Numpy array with random valuesHow to choose elements from the list with different probability using NumPy?How to get weighted random choice in Python?Generate Random Numbers From The Uniform Distribution using NumPyGet Random Elements form geometric distributionGet Random elements from Laplace distributionReturn a Matrix of random values from a uniform distributionReturn a Matrix of random values from a Gaussian distributionNumPy Strings ExercisesRepeat all the elements of a NumPy array of stringsHow to split the element of a given NumPy array with spaces?How to insert a space between characters of all the elements of a given NumPy array?Find the length of each string element in the Numpy arraySwap the case of an array of stringChange the case to uppercase of elements of an arrayChange the case to lowercase of elements of an arrayJoin String by a separatorCheck if two same shaped string arrayss one by oneCount the number of substrings in an arrayFind the lowest index of the substring in an arrayGet the boolean array when values end with a particular character>>> MorePandas Exercises for Data AnalysisPandas Dataframe ExercisesMake a Pandas DataFrame with two-dimensional list | PythonPython | Creating DataFrame from dict of narray/listsCreating Pandas dataframe using list of listsCreating a Pandas dataframe using list of tuplesCreate a Pandas DataFrame from List of DictsPython | Convert list of nested dictionary into Pandas dataframeCreating a dataframe from Pandas seriesConstruct a DataFrame in Pandas using string dataClean the string data in the given Pandas DataframeReplace values in Pandas dataframe using regexReindexing in Pandas DataFrameMapping external values to dataframe values in PandasReset Index in Pandas DataframePython | Change column names and row indexes in Pandas DataFramePandas Dataframe Row ExercisesHow to iterate over rows in Pandas DataframeDifferent ways to iterate over rows in Pandas DataframeSelecting rows in pandas DataFrame based on conditionsSelect any row from a Dataframe using iloc[] and iat[] in PandasLimited rows selection with given column in Pandas | PythonDrop rows from the dataframe based on certain condition applied on a columnInsert row at given position in Pandas DataframeCreate a list from rows in Pandas dataframeRanking Rows of Pandas DataFrameSorting rows in pandas DataFrameSelect row with maximum and minimum value in Pandas dataframeGet all rows in a Pandas DataFrame containing given substringConvert a column to row name/index in PandasHow to randomly select rows from Pandas DataFramePandas Daraftame Columns ExercisesCreate a pandas column using for loopHow to get column names in Pandas dataframeHow to rename columns in Pandas DataFrameGet unique values from a column in Pandas DataFrameConditional operation on Pandas DataFrame columnsReturn the Index label if some condition is satisfied over a column in Pandas DataframeFormatting integer column of Dataframe in PandasCreate a new column in Pandas DataFrame based on the existing columnsPython | Creating a Pandas dataframe column based on a given conditionGetting Unique values from a column in Pandas dataframeSplit a String into columns using regex in pandas DataFrameGetting frequency counts of a columns in Pandas DataFrameSplit a text column into two columns in Pandas DataFrameGet the index of minimum value in DataFrame columnGet the index of maximum value in DataFrame columnDifference of two columns in Pandas dataframeGet n-largest values from a particular column in Pandas DataFrameGet n-smallest values from a particular column in Pandas DataFrameHow to drop one or multiple columns in Pandas DataframeHow to lowercase column names in Pandas dataframeCapitalize first letter of a column in Pandas dataframeApply uppercase to a column in Pandas dataframePandas Datetime ExercisesPandas | Basic of Time Series ManipulationUsing Timedelta and Period to create DateTime based indexes in PandasConvert the column type from string to datetime format in Pandas dataframe>>> More Comment More infoAdvertise with us Next Article Exploratory Data Analysis in Python | Set 1 A abhishek1 Follow Improve Article Tags : Python AI-ML-DS Python-numpy Python-pandas Practice Tags : python Similar Reads Exploratory Data Analysis (EDA) with NumPy, Pandas, Matplotlib and Seaborn Exploratory Data Analysis (EDA) serves as the foundation of any data science project. It is an essential step where data scientists investigate datasets to understand their structure, identify patterns, and uncover insights. Data preparation involves several steps, including cleaning, transforming, 4 min read Exploratory Data Analysis in Python | Set 1 This article provides a comprehensive guide to performing Exploratory Data Analysis (EDA) using Python focusing on the use of NumPy and Pandas for data manipulation and analysis.Step 1: Setting Up EnvironmentTo perform EDA in Python we need to import several libraries that provide powerful tools for 4 min read EDA | Exploratory Data Analysis in Python Exploratory Data Analysis (EDA) is a important step in data analysis which focuses on understanding patterns, trends and relationships through statistical tools and visualizations. Python offers various libraries like pandas, numPy, matplotlib, seaborn and plotly which enables effective exploration 6 min read Data analysis using Pandas Pandas are the most popular python library that is used for data analysis. It provides highly optimized performance with back-end source code purely written in C or Python. We can analyze data in Pandas with: Pandas SeriesPandas DataFramesPandas Series Series in Pandas is one dimensional(1-D) array 4 min read Exploratory Data Analysis on Iris Dataset Exploratory Data Analysis (EDA) is a technique to analyze data using some visual Techniques. With this technique, we can get detailed information about the statistical summary of the data. We will also be able to deal with the duplicates values, outliers, and also see some trends or patterns present 8 min read 10 Python Pandas tips to make data analysis faster Data analysis using Python's Pandas library is a powerful process, and its efficiency can be enhanced with specific tricks and techniques. These Python tips will make our code concise, readable, and efficient. The adaptability of Pandas makes it an efficient tool for working with structured data. Wh 15 min read Like