Tuesday, October 3, 2017

Hidden Google Secrets [video]

Here's some of Google's coolest Easter Eggs!

[ This is a content summary only. Visit our website http://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Web Desk via Digital Information World

Pandas: The Swiss Army Knife for Your Data, Part 1

Pandas is an amazing data analysis toolkit for Python. It is designed to operate on relational or labeled data and gives you tools to slice and dice as you please. 

In this two-part tutorial, you'll learn about the fundamental data structures of Pandas: the series and the data frame. You'll also learn how to select data, deal with missing values, manipulate your data, merge your data, group your data, work with time series, and even plot data.

Installation

To install, just pip install pandas. It will take care of installing numpy too if you don't have it installed.

Series

Pandas series are typed and labeled 1-D arrays. This means that each element can be accessed by its label in addition to its index.

Here is a series of integers where the labels are Roman numerals. You can index and slice using the labels or integer indices. Unlike with regular Python list slicing, when using labels the last item is included!

If you don't provide an index then a 0-based integer index is automatically created:

Now, here is a little secret for you. Pandas series are a wrapper around Numpy's arrays.

Unlike Python lists or numpy arrays, operations on series align on the index. If the indexes don't match then the union of indices will be used with missing values as appropriate. Here are a few examples using dicts as data so the keys become the series index:

Data Frames

Data frames are the primary pandas data structure. They represent tables of data where each column is a series. Data frames have an index too, which serves as a row label. A data frame also has column labels. Here is how to declare a data frame using a dict. 

Note that an integer index (row label) was created automatically. You can of course provide your own index:

Importing and Exporting Data

Data frames can be constructed from a very wide variety of sources:

  • dict of 1-D ndarrays, lists, dicts, or series
  • 2-D numpy.ndarray
  • structured or record ndarray
  • another DataFrame

You can also import or load data from many file formats and databases such as:

  • CSV
  • Excel
  • HTML
  • HDFStore 
  • SQL

Here is how to read a CSV file:

Here is the complete list of read_functions():

There are corresponding methods on the data frame object itself for exporting the data to many formats and databases. Here is how you export to json and msgpack:

Metadata and Stats

Pandas gives a lot of information about data frames. Check out these methods:

Selecting Data

Data frames let you select data. If you want to select a row by index, you need to use the loc attribute. To select columns, you simply use the column name. Here is how to select individual rows, individual columns, a slice of rows, a slice of columns, and last but not least, a rectangular section (subset of rows and subset of columns from these rows):

In addition to those direct addressing data selections, you can also select based on values. For example, you can select only rows with even values in column b: 

Sorting Data

Pandas gives you sorting too. Let's sort the following data frame by index (rows) and by column. Multiple-level indexing is supported too:

Conclusion

In this part of the tutorial, we covered the basic data types of Pandas: the series and the data frame. We imported and exported data, selected subsets of data, worked with metadata, and sorted the data. In part two, we'll continue our journey and deal with missing data, data manipulation, data merging, data grouping, time series, and plotting. Stay tuned.

In the meantime, don’t hesitate to see what we have available for sale and for study in the marketplace, and don't hesitate to ask any questions and provide your valuable feedback using the feed below.


by Gigi Sayfan via Envato Tuts+ Code

In My World

In My World is a collaboration with photographer Robin Hammond. The website aims to raise awareness about the impact war, poverty and conflict can have on mental health issues.
by via Awwwards - Sites of the day

How to Legally Reshare Instagram Posts

Do you share other people’s Instagram posts to your own account? Concerned you may be violating Instagram’s terms of service or copyright law? In this article, you’ll discover best practices to help you safely and legally regram other people’s content on Instagram. #1: What Instagram Says About Regramming All good marketers and business owners want [...]

This post How to Legally Reshare Instagram Posts first appeared on .
- Your Guide to the Social Media Jungle


by Jenn Herman via

How To Advertise On Instagram: The Complete Guide for Business

According to a Pew Research study, 55 percent of all 18- to 29-year-olds in the United States are using Instagram. That’s a whole generation of people viewing the world through sepia-filtered glasses. Companies who can harness the power of that platform to share what’s great about their business...

[ This is a content summary only. Visit our website http://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Web Desk via Digital Information World

Create a Data-Driven Content Strategy in 1 Day #infographic

If you’re a content writer, you might think that data analytics isn’t relevant to you. But you’d be wrong. Data and content are actually a match made in heaven. If you collect the right data, you can find out what type of content resonates with your audience — isn’t that a writer’s ultimate...

[ This is a content summary only. Visit our website http://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Web Desk via Digital Information World

Monday, October 2, 2017

4 Ways You Can Make a Lot of Money Selling Virtual Stuff [video]

Digital goods are taking over, and here's how you can get in the game.

[ This is a content summary only. Visit our website http://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Web Desk via Digital Information World