Statology

Statology

Statistics Made Easy

Skip to content
Menu
  • About
  • Course
  • Basic Stats
  • Machine Learning
  • Software Tutorials
    • Excel
    • Google Sheets
    • MongoDB
    • Python
    • R
    • SAS
    • SPSS
    • Stata
    • TI-84
    • VBA
  • Tools
    • Calculators
    • Critical Value Tables
    • Glossary

Category: Uncategorized

Uncategorized

How to Reset an Index in Pandas DataFrame (With Examples)

Posted on September 17, 2021 by Zach

You can use the following syntax to reset an index in a pandas DataFrame: df.reset_index(drop=True, inplace=True) Note the following arguments: drop: Specifying True prevents pandas…

Uncategorized

How to Calculate the Magnitude of a Vector Using NumPy

Posted on September 17, 2021 by Zach

The magnitude of a given vector, x, is calculated as: ||x|| = √x12 + x22 + x32 + … + xn2 For example, suppose x…

Uncategorized

How to Rename Columns in Pandas (With Examples)

Posted on September 17, 2021October 20, 2022 by Zach

You can use one of the following three methods to rename columns in a pandas DataFrame: Method 1: Rename Specific Columns df.rename(columns = {‘old_col1′:’new_col1’, ‘old_col2′:’new_col2’},…

Uncategorized

How to Count Unique Values in Pandas (With Examples)

Posted on September 16, 2021September 20, 2021 by Zach

You can use the nunique() function to count the number of unique values in a pandas DataFrame. This function uses the following basic syntax: #count…

Uncategorized

How to Get Specific Column from NumPy Array (With Examples)

Posted on September 16, 2021 by Zach

You can use the following syntax to get a specific column from a NumPy array: #get column in index position 2 from NumPy array my_array[:,…

Uncategorized

How to Map a Function Over a NumPy Array (With Examples)

Posted on September 16, 2021 by Zach

You can use the following basic syntax to map a function over a NumPy array: #define function my_function = lambda x: x*5 #map function to…

Uncategorized

How to Add a Column to a NumPy Array (With Examples)

Posted on September 16, 2021September 16, 2021 by Zach

You can use one of the following methods to add a column to a NumPy array: Method 1: Append Column to End of Array np.append(my_array,…

Uncategorized

How to Convert NumPy Array to List in Python (With Examples)

Posted on September 16, 2021 by Zach

You can use the following basic syntax to convert a NumPy array to a list in Python: my_list = my_array.tolist() The following examples show how…

Uncategorized

How to Convert Pandas DataFrame Columns to int

Posted on September 16, 2021November 28, 2022 by Zach

You can use the following syntax to convert a column in a pandas DataFrame to an integer type: df[‘col1’] = df[‘col1’].astype(int) The following examples show…

Uncategorized

How to Convert List to NumPy Array (With Examples)

Posted on September 16, 2021 by Zach

You can use the following basic syntax to convert a list in Python to a NumPy array: import numpy as np my_list = [1, 2,…

Posts navigation

Previous Page Page 1 … Page 305 Page 306 Page 307 … Page 498 Next Page

Search

ABOUT

Statology is a site that makes learning statistics easy by explaining topics in simple and straightforward ways. Learn more about us.

Statology Study

Statology Study is the ultimate online statistics study guide that helps you study and practice all of the core concepts taught in any elementary statistics course and makes your life so much easier as a student.

statology study

Introduction to Statistics Course

Introduction to Statistics is our premier online video course that teaches you all of the topics covered in introductory statistics. Get started with our course today.

introduction to statistics

Recent Posts

  • How to Combine Date & Time in Google Sheets
  • Excel: Use VLOOKUP to Return Multiple Values Vertically
  • How to Stop Excel from Formatting Numbers with E+11
© 2023 Statology | Privacy Policy
Wisteria Theme by WPFriendship ⋅ Powered by WordPress