Reading .nc files by Python

I want to read .nc files by netCDF4 (using conda) but my files look like this: something.3520_nc What to do with this, it's still .nc file right? Should I rename it? Or after I downloaded it, is it important do save it on some special place? Can ...
more »

2017-05-25 21:05 (1) Answers

Clean the noisy data with pandas drop row

I am trying to reduce the noise from a large dataset with grammatical keywords. Is there a way to horizontally trim the data-set based on a particular set of keywords. Input: id1, id2, keyword, freq, gp1, gps2 222, 111, #paris, 100, loc1, loc2 ...
more »

2017-05-21 15:05 (4) Answers

Python pandas datareader isn't working

Today, I was grabbing stock data using Python's pandas_datareader. Funny thing is it worked just several hours ago, but now I'm not able to grab stock data from yahoo-finance, but I can with google. I then upgraded pandas datareader in my command ter...
more »

2017-05-17 00:05 (1) Answers

Conda and Visual Studio Code debugging

The goal is to be able to use my environment setup from Conda/Anaconda within the visual studio code debugger. The default pythonpath configuration does not produce this effect - rather it goes to the system default python path (what you get when you...
more »

2017-04-29 22:04 (1) Answers

Install python-igraph in Mac OSX Sierra

I have anaconda installed in my Mac. I am trying to install python-igraph. I tried the following commands to install it: $ brew install igraph $ pip install python-igraph My python setup: Python 2.7.13 |Anaconda custom (x86_64)| (default, Dec 20...
more »

2017-03-19 20:03 (1) Answers

Best Practices with Anaconda and Brew

I have just got a new Macbook with OSX Sierra, so want to ensure my development environment is setup properly. I am looking to follow the 'best practices' mentioned here: https://github.com/nicolashery/mac-dev-setup I need Python 2.x for work (urll...
more »

2017-03-17 15:03 (1) Answers

how to include numpy with cythonize-script?

Recently I start looking into Cython, and the Anaconda distribution have this handy script cythonize which allow to do >cythonize -i foo.pyx to compile files in place. My question is how I can use that script to include numpy so my cimport n...
more »

2017-03-17 05:03 (1) Answers

Can't update anaconda and python 3.6

I have Anaconda Python=2.7, and I try to install Anaconda Python 3.x but it says I just need to update the using conda update python=3.6 and I do this: $conda update anaconda but the result always: PackageNotFoundError: Package not found: 'a...
more »

2017-02-12 18:02 (0) Answers

How to uninstall Anaconda completely

How can I completely uninstall Anaconda from MacOS Sierra and revert back to the original Python? I have tried using conda-clean -yes but that doesn't work. I also remove the stuff in ~/.bash_profile but it still uses the Anaconda python and I can st...
more »

2017-02-12 00:02 (2) Answers

anaconda 4.3 pandas sum

I recently installed anaconda 4.3 and when I try to do a sum using df["x"].sum() or np.sum(df["x"]) with a pandas dataframe read from excel I get a wrong answer. I also get a wrong answer while trying to use np.sum(x) to sum a random array, but it wo...
more »

2017-02-10 19:02 (0) Answers

Issue Removing Anaconda from MacOS

I downloaded Anaconda Navigator to my Mac (macOS Sierra). I am trying to cleanly uninstall Anaconda so that there is no trace of it and so python reverts to how it was out-of-the-box. I have followed the instructions about Anaconda-Clean at this sit...
more »

2017-01-18 17:01 (1) Answers

How do I upgrade to Python 3.6 with conda?

I'm new to Conda package management and I want to get the latest version of Python to use f-strings in my code. Currently my version is (python -V): Python 3.5.2 :: Anaconda 4.2.0 (x86_64) How would I upgrade to Python 3.6? ...
more »

2017-01-08 18:01 (2) Answers

Jupyter python3 notebook cannot recognize pandas

I am using the Jupyter notebook with Python 3 selected. On the first line of a cell I am entering: import pandas as pd The error I get from the notebook is, ImportError: No module named 'pandas'. How can I install pandas to the jupyter notebook? T...
more »

2016-11-11 18:11 (3) Answers

No module named igraph - Error

I am using anaconda on mac-osx and have installed python-igraph. Currently not being able to import igraph. Below is the error shown: Python 2.7.12 |Anaconda 4.1.1 (x86_64)| import igraph ---- ImportError: No module named igraph It is prese...
more »

2016-11-03 08:11 (0) Answers