How do I get all the rows of data for a specific month,or days; over a range of many years using pandas DataFrame?

Python
I am attempting to find seasonal trends in the stock market. I want to have the ability to see how an asset has preformed i.e. what is the average ret...
6 months ago

Prepare my bigdata with Spark via Python

Python
My 100m in size, quantized data: (1424411938', [3885, 7898]) (3333333333', [3885, 7898]) Desired result: (3885, [3333333333, 1424411938]) (7898, [...
6 months ago

R - how to make PCA biplot more readable

R
I have a set of observations with 23 variables. When I use prcomp and biplot to plot the results I run into several problems: the actual plot only ...
6 months ago

How to create multiple new columns with data.table's j over different subsets

R
I want to create multiple variables that are aggregating various subsets of a dataset. For an illustrating example, say you have the following data: ...
6 months ago

React Native: Why don't flex justifyContent and alignItems work for child <View/>?

React JSX
In React Native, I have a child view inside another view, but it doesn't center in the middle of the page. But if the child view is not inside the par...
6 months ago

Ruby incorrectly interpreting class namespace

Ruby
I have code that looks like the following snippet: require_relative 'class/foo' require_relative 'class/bar' require_relative 'class/baz' class MyCl...
6 months ago

Iterating over key-value arrays in Twig?

Twig
I'm (finally) switching my site from Drupal7 to Symfony3. I'm working on migrating my layout to .twig. I've got a question about loops and key-value...
6 months ago

The expression contains invalid date constant

Vb.net
I tried this code first before copying it to my main project (I created new project to test the codes first): Private Sub posBtn_Click(sender As Obje...
6 months ago

Programmatically retrieve permissions from manifest.xml in android

Android
I have to programmatically retrieve permissions from the manifest.xml of an android application and I don't know how to do it. I read the post here b...
6 months ago

App start with NullPointerException on device

Android
I made a fresh build (after the weekend) and my app crashed with the exception below. The interesting part is, that I made a build last week with the ...
6 months ago

What file system path is used by Android's Context.openFileOutput()?

Android
I can't understand why the answer to this isn't in the Android developer docs; I find them consistently frustrating. Re the openFileOutput() method o...
6 months ago

TcpClient: How do I close and reconnect it again?

C#
Hello and thanks for your help. This time I would like to ask about TcpClient. I have a server program and I am writing a client program. This client...
6 months ago

ISO8601 direct DateTime parse incorrect by single day

C#
I am trying to pass two datetime fields (start date and end date) to my webapi server in which the ISO8601 format date string in my javascript appears...
6 months ago

Dynamically create JSON object for datareader results, regardless of what they look like?

C#
Right now I'm using Newtonsoft.json with my OdbcConnection and manually creating objects for each query I run. It looks something like this: Classes...
6 months ago

Detect when new display is connected

C#
I'm writing an application that requires two displays: one for the control panel, the other for the output. What I have is this: if there's only one d...
6 months ago

How to load Images in Codeigniter?

CSS
Hey i am totally new in Codeigniter.In the Controllers folder I created a file named caller.php and I created a file home1.php in Views. In root direc...
6 months ago

Align divs horizontally with rails generated loop

CSS
I'm trying to lay out a list of blog posts horizontally. But I don't know how. I was able to achieve the result i wanted using css flexbox when creati...
6 months ago

How do I use jsp form element contents (base64, text) as my html image src?

HTML
The jsp form contents are already formatted as such: &lt;form id="textpage" &lt;textarea name="textbox" id="text"&gt; data:image/png;base64,iVBORw0KG...
6 months ago

collections.sort doesn't work for custom objects

Java
I'm trying to sort my List but this one doesn't work. Method collections.sort() does nothing. public boolean schedule(){ List&lt;Task&gt; keys = ...
6 months ago

Adding / Removing classes to list items

Javascript
So I've built this little slider with left and right nav arrows and I'm having trouble with my attempts to add a class to the list items in the ul. B...
6 months ago