Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Grouping data based on rolling conditions
Post: Grouping data based on rolling conditions

I am trying to group the data-frame based on a few conditions. Data frame: Start Date End Date value 1971-07-01 1971-07-31 0.0 1971-08-01 1971-08-31 0.25 1971-09-01 1971-09-30 -0.62 1971-10...
kapilan15 Data Science 0 1,959 Jun-05-2019, 01:07 PM
    Thread: Creating new rows and adding them to empty data frame
Post: Creating new rows and adding them to empty data fr...

I have data frame(df1) of start and end dates look like this. Start Date End Date 1875-01-01 1877-09-30 1881-07-01 1886-03-31 1888-01-01 1889-06-30 1890-10-01 1890-12-31 . . ...
kapilan15 Data Science 0 1,668 May-31-2019, 10:19 AM
    Thread: python shell elabroting output
Post: python shell elabroting output

I ran a simple correlation matrix with 8 columns and rows. The output produced in python shell does not show the full output (image attached). How can I elaborate it to see the full matrix? Thanks
kapilan15 General Coding Help 2 2,476 Feb-11-2019, 01:36 PM
    Thread: Python Matplotlib help!!!
Post: Python Matplotlib help!!!

import pandas as pd from pandas import Series from matplotlib import pyplot as plt data = pd.read_csv ('data.csv') plt.plot(data.Date, data.Leverage) plt.show()Data Date Leverage Dec-52 2.01% Mar-...
kapilan15 General Coding Help 1 1,833 Feb-07-2019, 06:08 PM
    Thread: Saving python cmd output into a text file with colours
Post: Saving python cmd output into a text file with col...

from colorama import Fore, Back, Style, init import fpdf from fpdf import FPDF init() paragraph = 'Whatever blame emerges! Its gasoline avoids the prison. The unlimited mania varies an exotic g...
kapilan15 General Coding Help 2 7,058 Jan-25-2019, 03:51 PM
    Thread: web scraping help in getting the output
Post: web scraping help in getting the output

import bs4 as bs import urllib.request import re import os from colorama import Fore, Back, Style, init init() def highlight(word): if word in keywords: return Fore.RED + str(word) + F...
kapilan15 Web Scraping & Web Development 1 2,329 Jan-15-2019, 04:25 PM
    Thread: comparing 2 lists and highlighting key elements
Post: RE: comparing 2 lists and highlighting key element...

import bs4 as bs import urllib.request import re import os from colorama import Fore, Back, Style, init init() def highlight(word): if word in keywords: return Fore.RED + str(word) + For...
kapilan15 Web Scraping & Web Development 2 2,069 Jan-15-2019, 03:00 PM
    Thread: comparing 2 lists and highlighting key elements
Post: comparing 2 lists and highlighting key elements

from colorama import Fore, init init() key_words = ['mystery', 'the', 'charge', 'pretends'] paragraph_split = ['the', 'desired', 'mystery', 'corners', 'the', 'differential', '.', 'the', 'back', 'pre...
kapilan15 Web Scraping & Web Development 2 2,069 Jan-15-2019, 02:24 PM
    Thread: UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 23: c
Post: UnicodeEncodeError: 'charmap' codec can't encode c...

I try to run my code in cmd command. It ran few lines of my code and gave some en code error. I posted the output below. Does anyone know why this happens? Thanks in advance. Output:C:\Users\resea>...
kapilan15 General Coding Help 2 4,429 Jan-14-2019, 06:33 PM
    Thread: colorama/termcolor not returning coloured lines
Post: RE: colorama/termcolor not returning coloured line...

(Jan-14-2019, 12:43 PM)buran Wrote: where do you run this code? you need to run it from command prompt/terminal. I guess you run it in IDE...I did run it in IDLE. I also ran it in command prompt/ter...
kapilan15 General Coding Help 3 6,801 Jan-14-2019, 12:49 PM
    Thread: colorama/termcolor not returning coloured lines
Post: colorama/termcolor not returning coloured lines

Code - from colorama import Fore, Back, Style print(Fore.RED + 'some red text') print(Back.GREEN + 'and with a green background') print(Style.DIM + 'and in dim text') print(Style.RESET_ALL) print('ba...
kapilan15 General Coding Help 3 6,801 Jan-14-2019, 12:38 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020