Session ID: ses_3e21fade1ffecORaoKJwTugpH9 Created: 2/2/2026, 10:22:46 AM Updated: 2/2/2026, 11:41:15 AM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Changing the data types of all strings in the module at once | |
| from __future__ import unicode_literals | |
| # Used to save the file as excel workbook | |
| # Need to install this library | |
| from xlwt import Workbook | |
| # Used to open to corrupt excel file | |
| import io | |
| filename = r'SALEJAN17.xls' | |
| # Opening the file using 'utf-16' encoding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import Dropzone from 'react-dropzone'; | |
| import Request from 'superagent'; | |
| class UploadPost extends React.Component { | |
| constructor() { | |
| super() | |
| this.state = { files: [] } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # import the required library to open HDF file | |
| from pandas import HDFStore | |
| class OpenHDFS(): | |
| """ | |
| Context Manager class to open / create a HDFS / h5 file | |
| """ | |
| def __init__(self, filename): | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Suspend" boolean:true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #coding:utf-8 | |
| import psutil | |
| from mpl_toolkits.mplot3d import Axes3D | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import matplotlib.animation as animation | |
| TIME_NUM = 90 | |
| FRAMES = 360 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 | ||
|---|---|---|
| 2 | ||
| 5 | ||
| 1 | ||
| 2 | ||
| 9 | ||
| 8 | ||
| 4 | ||
| 6 | ||
| 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 | ||
|---|---|---|
| 2 | ||
| 5 | ||
| 1 | ||
| 7 | ||
| 9 | ||
| 8 | ||
| 4 | ||
| 6 | ||
| 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a = 25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pandas import DataFrame | |
| # import the required library to open HDF file | |
| from pandas import HDFStore | |
| # File that stores the dataframe | |
| filename = 'data.h5' | |
| # Creating a dataframe | |
| df = DataFrame(np.random.randn(5,3), columns=['A', 'B', 'C',]) | |
| class OpenHDFS(): |
NewerOlder