import Questions

15

I am importing some data of 20,000 rows from a CSV file into MySQL. Columns in the CSV file are in a different order than MySQL tables' columns. How can I automatically assign columns corresponding...
Nadinenadir asked 2/1, 2013 at 18:55

9

Solved

I have some bulk data in a text file that I need to import into a MySQL table. The table consists of two fields .. ID (integer with auto-increment) Name (varchar) The text file is a large colle...
Coagulate asked 17/3, 2010 at 15:28

5

Solved

Suppose I have a package named bar, and it contains bar.py: a = None def foobar(): print a and __init__.py: from bar import a, foobar Then I execute this script: import bar print bar.a ba...
Unfledged asked 21/8, 2010 at 6:34

10

I'm using IntelliJ 11.1.3 and I'm trying to attach two external libraries in the form of jarfiles to use in a module. I've added them in project structure -> module -> dependencies and they show up...
Earnest asked 15/8, 2012 at 2:13

6

Solved

I'm trying to replicate from foo.bar import object using the __import__ function and I seem to have hit a wall. A simpler case from glob import glob is easy: glob = __import__("glob").glob The pr...
Selmner asked 21/3, 2012 at 14:48

7

The first cell of my jupyter notebook contains the libraries I want to import. For some reason when I run it receive the ImportError: cannot import name randbits. I have never seen this import erro...
Boogie asked 20/7, 2022 at 16:28

3

Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0) -everytime I execute on PyCharm "import pandas as pd" I got this error Give me solutio...
Indecisive asked 29/1 at 18:0

9

Solved

All tutorials with adding svg to a component in AngularCli that I found recommend to insert it in html template, something like this: <div> <svg viewBox="0 0 250 250"> <svg:g cla...
Waller asked 30/10, 2018 at 14:41

5

Let's say I have the following directory structure: parent_dir/ foo_dir/ foo.py bar_dir/ bar.py If I wanted to import bar.py from within foo.py, how would I do that?
Titi asked 22/4, 2012 at 22:57

6

I am attempting run in Jupyter import pandas as pd import matplotlib.pyplot as plt # plotting import numpy as np # dense matrices from scipy.sparse import csr_matrix # sparse matrices %matplotli...
Feinleib asked 3/11, 2016 at 16:49

8

Solved

I want to delete the BOM from my imported file, but it just doesn't seem to work. I tried to preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $file); and a str_replace. I hope anybody sees what I'm doi...
Hominy asked 24/8, 2015 at 14:33

4

Solved

$ sqlite3 test.sql SQLite version 3.6.12 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> create table test (id integer, author_id integer, title varchar(128), n...
Crowded asked 16/1, 2012 at 10:28

15

Solved

I have managed to get spyder installed and functioning on my mac but I want to add in a few modules that it doesn't include by default (mahotas and pymorph). I installed both via easy_install in ...
Wine asked 23/5, 2012 at 23:8

3

I have a multitude of problems stemming from one central issue: Android Studio isn't recognizing imports. For example, in my class "ActivityAbout" I have the following import statements: import a...
Bonedry asked 31/8, 2017 at 13:1

6

Solved

I installed the pyautogui module and dependencies via pip-3.2 on my raspi correctly, However when I am trying to do import pyautogui I am getting an import error: ImportError: No module named p...
Coterie asked 26/7, 2015 at 8:40

5

Solved

I'd like to set up a data import source in Excel through which I can dynamically pull data from Jira. I know this used to be possible by using an Excel web query and the XML link from the Jira filt...
Ditchwater asked 31/1, 2014 at 18:19

5

Solved

I have a private repo on git that I would love to import in another private repo. When I try to import it, I log in with my account and then this message Your old project requires credentials for r...
Clarkson asked 18/2, 2022 at 18:39

9

Given the following imports import javax.inject.Inject import kotlinx.android.synthetic.main.fragment.* Android Studio rearrange to the following when pressing control + option + o import kotli...
Fletcher asked 24/3, 2020 at 11:11

72

Solved

How do I include a JavaScript file inside another JavaScript file, similar to @import in CSS?
Quip asked 4/6, 2009 at 11:59

25

I'm trying to import a theme from a CSS module but TypeScript gives me a "Cannot Find Module" error and the theme isn't applied on runtime. I think there's something wrong with my Webpack config bu...
Hypocycloid asked 2/11, 2016 at 14:45

6

Solved

Is it possible to convert csv data that has iso-8859-13 encoding to UTF-8? My old system does not have UTF-8 encoding, it uses only iso-8859-13. The system that I need to import to does not have i...
Antechamber asked 9/9, 2013 at 7:11

16

I have a problem with my webpack project, so I was trying to import one class to another and instantiate it but suddenly an error appear in my console and my program stopped working, it was this: U...
Presume asked 27/11, 2020 at 13:32

2

Solved

Is there a way to force autoimport to always use the alias for importing modules in a [email protected] project using VSCode? I would like to use them even when it's a sibling component, no ex...
Collette asked 18/10, 2023 at 7:39

9

Solved

I have a FBX model which I would like to open in Blender but when I try to import the model it says: ASCII FBX files are not supported. Is there a way to import the model to Blender somehow? I don'...
Fearsome asked 20/2, 2015 at 18:26

7

I want to use the Google font called poppins and this is the url of the font https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap. Does anyone know hot to do this?
Sixtynine asked 19/3, 2021 at 16:51

© 2022 - 2024 — McMap. All rights reserved.